‪TYPO3CMS  ‪main
TYPO3\CMS\Adminpanel\ModuleApi\ResourceProviderInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Adminpanel\ModuleApi\ResourceProviderInterface:
TYPO3\CMS\Adminpanel\Modules\CacheModule TYPO3\CMS\Adminpanel\Modules\PreviewModule TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\DisabledMainModuleFixture

Public Member Functions

 getJavaScriptFiles ()
 
 getCssFiles ()
 

Detailed Description

Adminpanel interface to denote that a module has own resource files.

An adminpanel module implementing this interface may deliver custom JavaScript and Css files to provide additional styling and JavaScript functionality

Definition at line 26 of file ResourceProviderInterface.php.

Member Function Documentation

◆ getCssFiles()

TYPO3\CMS\Adminpanel\ModuleApi\ResourceProviderInterface::getCssFiles ( )

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

Example: return ['EXT:adminpanel/Resources/Public/JavaScript/Modules/Edit.css'];

Implemented in TYPO3\CMS\Adminpanel\Modules\PreviewModule, TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture, and TYPO3\CMS\Adminpanel\Modules\CacheModule.

◆ getJavaScriptFiles()

TYPO3\CMS\Adminpanel\ModuleApi\ResourceProviderInterface::getJavaScriptFiles ( )

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

Example: return ['EXT:adminpanel/Resources/Public/JavaScript/Modules/Edit.js'];

Implemented in TYPO3\CMS\Adminpanel\Modules\PreviewModule, TYPO3\CMS\Adminpanel\Tests\Unit\Fixtures\MainModuleFixture, and TYPO3\CMS\Adminpanel\Modules\CacheModule.