‪TYPO3CMS  11.5
TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture Class Reference
Inheritance diagram for TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture:
TYPO3\CMS\Adminpanel\ModuleApi\ModuleInterface TYPO3\CMS\Adminpanel\ModuleApi\ContentProviderInterface TYPO3\CMS\Adminpanel\ModuleApi\ModuleSettingsProviderInterface TYPO3\CMS\Adminpanel\ModuleApi\OnSubmitActorInterface TYPO3\CMS\Adminpanel\ModuleApi\DataProviderInterface

Public Member Functions

string getIdentifier ()
 
string getLabel ()
 
string getContent (ModuleData $data)
 
string getSettings ()
 
 onSubmit (array $configurationToSave, ServerRequestInterface $request)
 
ModuleData getDataToStore (ServerRequestInterface $request)
 

Detailed Description

Definition at line 28 of file SubModuleFixture.php.

Member Function Documentation

◆ getContent()

string TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture::getContent ( ModuleData  $data)

Sub-Module content as rendered HTML

Parameters
ModuleData$data
Returns
‪string

Implements TYPO3\CMS\Adminpanel\ModuleApi\ContentProviderInterface.

Definition at line 57 of file SubModuleFixture.php.

◆ getDataToStore()

ModuleData TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture::getDataToStore ( ServerRequestInterface  $request)
Parameters
ServerRequestInterface$request
Returns
‪ModuleData

Implements TYPO3\CMS\Adminpanel\ModuleApi\DataProviderInterface.

Definition at line 86 of file SubModuleFixture.php.

◆ getIdentifier()

string TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture::getIdentifier ( )

Identifier for this Sub-module, for example "preview" or "cache"

Returns
‪string

Implements TYPO3\CMS\Adminpanel\ModuleApi\ModuleInterface.

Definition at line 36 of file SubModuleFixture.php.

◆ getLabel()

string TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture::getLabel ( )

Sub-Module label

Returns
‪string

Implements TYPO3\CMS\Adminpanel\ModuleApi\ModuleInterface.

Definition at line 46 of file SubModuleFixture.php.

◆ getSettings()

string TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture::getSettings ( )

Settings as HTML form elements (without wrapping form tag or save button)

Returns
‪string

Implements TYPO3\CMS\Adminpanel\ModuleApi\ModuleSettingsProviderInterface.

Definition at line 67 of file SubModuleFixture.php.

◆ onSubmit()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\SubModuleFixture::onSubmit ( array  $configurationToSave,
ServerRequestInterface  $request 
)

Executed on saving / submit of the configuration form Can be used to react to changed settings (for example: clearing a specific cache)

Parameters
array$configurationToSave
ServerRequestInterface$request

Implements TYPO3\CMS\Adminpanel\ModuleApi\OnSubmitActorInterface.

Definition at line 80 of file SubModuleFixture.php.