‪TYPO3CMS  11.5
SubModuleFixture.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;
27 
29 {
36  public function ‪getIdentifier(): string
37  {
38  return 'example-submodule';
39  }
40 
46  public function ‪getLabel(): string
47  {
48  return 'Example SubModule';
49  }
50 
57  public function ‪getContent(‪ModuleData $data): string
58  {
59  return 'content';
60  }
61 
67  public function ‪getSettings(): string
68  {
69  return 'settings';
70  }
71 
80  public function ‪onSubmit(array $configurationToSave, ServerRequestInterface $request): void {}
81 
86  public function ‪getDataToStore(ServerRequestInterface $request): ‪ModuleData
87  {
88  return new ‪ModuleData(['foo' => 'bar']);
89  }
90 }
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture\getLabel
‪string getLabel()
Definition: SubModuleFixture.php:46
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture\getSettings
‪string getSettings()
Definition: SubModuleFixture.php:67
‪TYPO3\CMS\Adminpanel\ModuleApi\DataProviderInterface
Definition: DataProviderInterface.php:30
‪TYPO3\CMS\Adminpanel\ModuleApi\ModuleSettingsProviderInterface
Definition: ModuleSettingsProviderInterface.php:34
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture\onSubmit
‪onSubmit(array $configurationToSave, ServerRequestInterface $request)
Definition: SubModuleFixture.php:80
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture\getDataToStore
‪ModuleData getDataToStore(ServerRequestInterface $request)
Definition: SubModuleFixture.php:86
‪TYPO3\CMS\Adminpanel\ModuleApi\ModuleInterface
Definition: ModuleInterface.php:26
‪TYPO3\CMS\Adminpanel\ModuleApi\ContentProviderInterface
Definition: ContentProviderInterface.php:30
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture\getIdentifier
‪string getIdentifier()
Definition: SubModuleFixture.php:36
‪TYPO3\CMS\Adminpanel\ModuleApi\OnSubmitActorInterface
Definition: OnSubmitActorInterface.php:27
‪TYPO3\CMS\Adminpanel\ModuleApi\ModuleData
Definition: ModuleData.php:26
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures
Definition: DisabledMainModuleFixture.php:18
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture\getContent
‪string getContent(ModuleData $data)
Definition: SubModuleFixture.php:57
‪TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture
Definition: SubModuleFixture.php:29