‪TYPO3CMS  10.4
DummyController.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
18 use Psr\Http\Message\ResponseInterface;
22 
28 {
34  public function ‪mainAction(): ResponseInterface
35  {
36  $moduleTemplate = GeneralUtility::makeInstance(ModuleTemplate::class);
37  $moduleTemplate->setTitle('Blank');
38  $moduleTemplate->getDocHeaderComponent()->disable();
39  return new ‪HtmlResponse($moduleTemplate->renderContent());
40  }
41 }
‪TYPO3\CMS\Backend\Template\ModuleTemplate
Definition: ModuleTemplate.php:43
‪TYPO3\CMS\Backend\Controller\DummyController\mainAction
‪ResponseInterface mainAction()
Definition: DummyController.php:34
‪TYPO3\CMS\Backend\Controller\DummyController
Definition: DummyController.php:28
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Backend\Controller
Definition: AbstractFormEngineAjaxController.php:18
‪TYPO3\CMS\Core\Http\HtmlResponse
Definition: HtmlResponse.php:26