‪TYPO3CMS  10.4
MainModuleFixture.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Psr\Http\Message\ServerRequestInterface;
29 
30 class ‪MainModuleFixture implements
39 {
40 
47  public function ‪getIdentifier(): string
48  {
49  return 'example';
50  }
51 
57  public function ‪getLabel(): string
58  {
59  return 'Example Label';
60  }
61 
67  public function ‪getIconIdentifier(): string
68  {
69  return 'actions-document-info';
70  }
71 
77  public function ‪getShortInfo(): string
78  {
79  return 'short info';
80  }
81 
85  public function ‪getPageSettings(): string
86  {
87  return 'example settings';
88  }
89 
99  public function ‪isEnabled(): bool
100  {
101  return true;
102  }
103 
112  public function ‪onSubmit(array $configurationToSave, ServerRequestInterface $request): void
113  {
114  }
115 
121  public function ‪getJavaScriptFiles(): array
122  {
123  return [];
124  }
125 
131  public function ‪getCssFiles(): array
132  {
133  return [];
134  }
135 
141  public function ‪setSubModules(array $subModules): void
142  {
143  }
144 
150  public function ‪getSubModules(): array
151  {
152  return [];
153  }
154 
158  public function ‪hasSubmoduleSettings(): bool
159  {
160  return false;
161  }
162 
170  public function ‪enrich(ServerRequestInterface $request): ServerRequestInterface
171  {
172  return $request;
173  }
174 }
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\isEnabled
‪bool isEnabled()
Definition: MainModuleFixture.php:99
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getSubModules
‪ModuleInterface[] getSubModules()
Definition: MainModuleFixture.php:150
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getPageSettings
‪string getPageSettings()
Definition: MainModuleFixture.php:85
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getJavaScriptFiles
‪array getJavaScriptFiles()
Definition: MainModuleFixture.php:121
‪TYPO3\CMS\Adminpanel\ModuleApi\ConfigurableInterface
Definition: ConfigurableInterface.php:29
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\enrich
‪ServerRequestInterface enrich(ServerRequestInterface $request)
Definition: MainModuleFixture.php:170
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getShortInfo
‪string getShortInfo()
Definition: MainModuleFixture.php:77
‪TYPO3\CMS\Adminpanel\ModuleApi\ResourceProviderInterface
Definition: ResourceProviderInterface.php:27
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\hasSubmoduleSettings
‪hasSubmoduleSettings()
Definition: MainModuleFixture.php:158
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture
Definition: MainModuleFixture.php:39
‪TYPO3\CMS\Adminpanel\ModuleApi\ShortInfoProviderInterface
Definition: ShortInfoProviderInterface.php:30
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getLabel
‪string getLabel()
Definition: MainModuleFixture.php:57
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getCssFiles
‪array getCssFiles()
Definition: MainModuleFixture.php:131
‪TYPO3\CMS\Adminpanel\ModuleApi\ModuleInterface
Definition: ModuleInterface.php:26
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\setSubModules
‪setSubModules(array $subModules)
Definition: MainModuleFixture.php:141
‪TYPO3\CMS\Adminpanel\ModuleApi\PageSettingsProviderInterface
Definition: PageSettingsProviderInterface.php:32
‪TYPO3\CMS\Adminpanel\ModuleApi\OnSubmitActorInterface
Definition: OnSubmitActorInterface.php:27
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getIconIdentifier
‪string getIconIdentifier()
Definition: MainModuleFixture.php:67
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures
Definition: DisabledMainModuleFixture.php:18
‪TYPO3\CMS\Adminpanel\ModuleApi\SubmoduleProviderInterface
Definition: SubmoduleProviderInterface.php:30
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\onSubmit
‪onSubmit(array $configurationToSave, ServerRequestInterface $request)
Definition: MainModuleFixture.php:112
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getIdentifier
‪string getIdentifier()
Definition: MainModuleFixture.php:47
‪TYPO3\CMS\Adminpanel\ModuleApi\RequestEnricherInterface
Definition: RequestEnricherInterface.php:37