‪TYPO3CMS  9.5
MainModuleFixture.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types = 1);
3 
5 
6 /*
7  * This file is part of the TYPO3 CMS project.
8  *
9  * It is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License, either version 2
11  * of the License, or any later version.
12  *
13  * For the full copyright and license information, please read the
14  * LICENSE.txt file that was distributed with this source code.
15  *
16  * The TYPO3 project - inspiring people to share!
17  */
18 
19 use Psr\Http\Message\ServerRequestInterface;
28 
29 class ‪MainModuleFixture implements
38 {
39 
46  public function ‪getIdentifier(): string
47  {
48  return 'example';
49  }
50 
56  public function ‪getLabel(): string
57  {
58  return 'Example Label';
59  }
60 
66  public function ‪getIconIdentifier(): string
67  {
68  return 'actions-document-info';
69  }
70 
76  public function ‪getShortInfo(): string
77  {
78  return 'short info';
79  }
80 
84  public function ‪getPageSettings(): string
85  {
86  return 'example settings';
87  }
88 
94  public function ‪initializeModule(ServerRequestInterface $request): void
95  {
96  }
97 
107  public function ‪isEnabled(): bool
108  {
109  return true;
110  }
111 
120  public function ‪onSubmit(array $configurationToSave, ServerRequestInterface $request): void
121  {
122  }
123 
129  public function ‪getJavaScriptFiles(): array
130  {
131  return [];
132  }
133 
139  public function ‪getCssFiles(): array
140  {
141  return [];
142  }
143 
149  public function ‪setSubModules(array $subModules): void
150  {
151  }
152 
158  public function ‪getSubModules(): array
159  {
160  return [];
161  }
162 
166  public function ‪hasSubmoduleSettings(): bool
167  {
168  return false;
169  }
170 }
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\isEnabled
‪bool isEnabled()
Definition: MainModuleFixture.php:107
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getSubModules
‪ModuleInterface[] getSubModules()
Definition: MainModuleFixture.php:158
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getPageSettings
‪string getPageSettings()
Definition: MainModuleFixture.php:84
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getJavaScriptFiles
‪array getJavaScriptFiles()
Definition: MainModuleFixture.php:129
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\initializeModule
‪initializeModule(ServerRequestInterface $request)
Definition: MainModuleFixture.php:94
‪TYPO3\CMS\Adminpanel\ModuleApi\InitializableInterface
Definition: InitializableInterface.php:34
‪TYPO3\CMS\Adminpanel\ModuleApi\ConfigurableInterface
Definition: ConfigurableInterface.php:28
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getShortInfo
‪string getShortInfo()
Definition: MainModuleFixture.php:76
‪TYPO3\CMS\Adminpanel\ModuleApi\ResourceProviderInterface
Definition: ResourceProviderInterface.php:26
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\hasSubmoduleSettings
‪hasSubmoduleSettings()
Definition: MainModuleFixture.php:166
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture
Definition: MainModuleFixture.php:38
‪TYPO3\CMS\Adminpanel\ModuleApi\ShortInfoProviderInterface
Definition: ShortInfoProviderInterface.php:29
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getLabel
‪string getLabel()
Definition: MainModuleFixture.php:56
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getCssFiles
‪array getCssFiles()
Definition: MainModuleFixture.php:139
‪TYPO3\CMS\Adminpanel\ModuleApi\ModuleInterface
Definition: ModuleInterface.php:25
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\setSubModules
‪setSubModules(array $subModules)
Definition: MainModuleFixture.php:149
‪TYPO3\CMS\Adminpanel\ModuleApi\PageSettingsProviderInterface
Definition: PageSettingsProviderInterface.php:31
‪TYPO3\CMS\Adminpanel\ModuleApi\OnSubmitActorInterface
Definition: OnSubmitActorInterface.php:25
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getIconIdentifier
‪string getIconIdentifier()
Definition: MainModuleFixture.php:66
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures
Definition: DisabledMainModuleFixture.php:4
‪TYPO3\CMS\Adminpanel\ModuleApi\SubmoduleProviderInterface
Definition: SubmoduleProviderInterface.php:29
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\onSubmit
‪onSubmit(array $configurationToSave, ServerRequestInterface $request)
Definition: MainModuleFixture.php:120
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture\getIdentifier
‪string getIdentifier()
Definition: MainModuleFixture.php:46