‪TYPO3CMS  ‪main
TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture Class Reference
Inheritance diagram for TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture:
TYPO3\CMS\Adminpanel\ModuleApi\ConfigurableInterface TYPO3\CMS\Adminpanel\ModuleApi\OnSubmitActorInterface TYPO3\CMS\Adminpanel\ModuleApi\PageSettingsProviderInterface TYPO3\CMS\Adminpanel\ModuleApi\ResourceProviderInterface TYPO3\CMS\Adminpanel\ModuleApi\RequestEnricherInterface TYPO3\CMS\Adminpanel\ModuleApi\SubmoduleProviderInterface TYPO3\CMS\Adminpanel\ModuleApi\ShortInfoProviderInterface TYPO3\CMS\Adminpanel\ModuleApi\ModuleInterface TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\DisabledMainModuleFixture

Public Member Functions

 getIdentifier ()
 
 getLabel ()
 
 getIconIdentifier ()
 
 getShortInfo ()
 
 getPageSettings ()
 
 isEnabled ()
 
 onSubmit (array $configurationToSave, ServerRequestInterface $request)
 
 getJavaScriptFiles ()
 
 getCssFiles ()
 
 setSubModules (array $subModules)
 
ModuleInterface[] getSubModules ()
 
 hasSubmoduleSettings ()
 
 setModuleData (ModuleDataStorageCollection $moduleData)
 
 enrich (ServerRequestInterface $request)
 

Detailed Description

Definition at line 31 of file MainModuleFixture.php.

Member Function Documentation

◆ enrich()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::enrich ( ServerRequestInterface  $request)

Initialize the module - runs in the TYPO3 middleware stack at an early point may manipulate the current request

Implements TYPO3\CMS\Adminpanel\ModuleApi\RequestEnricherInterface.

Definition at line 145 of file MainModuleFixture.php.

◆ getCssFiles()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::getCssFiles ( )

Returns a string array with css files that will be rendered after the module

Implements TYPO3\CMS\Adminpanel\ModuleApi\ResourceProviderInterface.

Definition at line 109 of file MainModuleFixture.php.

◆ getIconIdentifier()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::getIconIdentifier ( )

Module Icon identifier - needs to be registered in iconRegistry

Implements TYPO3\CMS\Adminpanel\ModuleApi\ShortInfoProviderInterface.

Definition at line 61 of file MainModuleFixture.php.

◆ getIdentifier()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::getIdentifier ( )

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

Implements TYPO3\CMS\Adminpanel\ModuleApi\ModuleInterface.

Reimplemented in TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\DisabledMainModuleFixture.

Definition at line 45 of file MainModuleFixture.php.

◆ getJavaScriptFiles()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::getJavaScriptFiles ( )

Returns a string array with javascript files that will be rendered after the module

Implements TYPO3\CMS\Adminpanel\ModuleApi\ResourceProviderInterface.

Definition at line 101 of file MainModuleFixture.php.

◆ getLabel()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::getLabel ( )

Module label

Implements TYPO3\CMS\Adminpanel\ModuleApi\ModuleInterface.

Definition at line 53 of file MainModuleFixture.php.

◆ getPageSettings()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::getPageSettings ( )

◆ getShortInfo()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::getShortInfo ( )

Displayed directly in the bar if module has content

Implements TYPO3\CMS\Adminpanel\ModuleApi\ShortInfoProviderInterface.

Definition at line 69 of file MainModuleFixture.php.

◆ getSubModules()

ModuleInterface [] TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::getSubModules ( )

Get SubModules for current module

Returns
‪ModuleInterface[]

Implements TYPO3\CMS\Adminpanel\ModuleApi\SubmoduleProviderInterface.

Definition at line 126 of file MainModuleFixture.php.

◆ hasSubmoduleSettings()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::hasSubmoduleSettings ( )

Return true if any of the submodules has settings to be rendered (can be used to render settings in a central place)

Implements TYPO3\CMS\Adminpanel\ModuleApi\SubmoduleProviderInterface.

Definition at line 131 of file MainModuleFixture.php.

◆ isEnabled()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::isEnabled ( )

Module is enabled -> should be initialized A module may be enabled but not shown -> only the initializeModule() method will be called

Implements TYPO3\CMS\Adminpanel\ModuleApi\ConfigurableInterface.

Reimplemented in TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\DisabledMainModuleFixture.

Definition at line 86 of file MainModuleFixture.php.

◆ onSubmit()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::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)

Implements TYPO3\CMS\Adminpanel\ModuleApi\OnSubmitActorInterface.

Definition at line 96 of file MainModuleFixture.php.

◆ setModuleData()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::setModuleData ( ModuleDataStorageCollection  $moduleData)

Set data for usage in getShortinfo()

Implements TYPO3\CMS\Adminpanel\ModuleApi\ShortInfoProviderInterface.

Definition at line 139 of file MainModuleFixture.php.

◆ setSubModules()

TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture::setSubModules ( array  $subModules)

Set SubModules for current module

Parameters
ModuleInterface[]$subModules

Implements TYPO3\CMS\Adminpanel\ModuleApi\SubmoduleProviderInterface.

Definition at line 119 of file MainModuleFixture.php.