TYPO3\CMS\Backend\Sprite\SimpleSpriteHandler Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Sprite\SimpleSpriteHandler:
TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler TYPO3\CMS\Backend\Sprite\SpriteIconGeneratorInterface

Public Member Functions

 generate ()
- Public Member Functions inherited from TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler
 __construct ()
 generate ()
 getAvailableIconNames ()

Protected Member Functions

 buildCssAndRegisterIcons ()
- Protected Member Functions inherited from TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler
 loadRegisteredSprites ()
 collectTcaSpriteIcons ()

Protected Attributes

- Protected Attributes inherited from TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler
 $iconNames = []
 $styleSheetData = ''
 $cssTcaFile = ''

Detailed Description

A class with an concrete implementation of AbspractSpriteHandler. It is the standard / fallback handler of the sprite manager. This implementation won't generate sprites at all. It will just render css-definitions for all registered icons so that they may be used through ::getSpriteIcon* Without the css classes generated here, icons of for example tca records would be empty.

since TYPO3 CMS 7, will be removed with TYPO3 CMS 8

Definition at line 26 of file SimpleSpriteHandler.php.

Member Function Documentation

◆ buildCssAndRegisterIcons()

TYPO3\CMS\Backend\Sprite\SimpleSpriteHandler::buildCssAndRegisterIcons ( )

This function builds an css class for every single icon registered via ::addSingleIcons to use them via ::getSpriteIcon and TCA-Icons for "classic" record Icons to be uses via ::getSpriteIconForRecord In the simpleHandler the icon just will be added as css-background-image.


Definition at line 64 of file SimpleSpriteHandler.php.

References $GLOBALS, TYPO3\CMS\Backend\Sprite\AbstractSpriteHandler\collectTcaSpriteIcons(), and TYPO3\CMS\Core\Utility\GeneralUtility\resolveBackPath().

Referenced by TYPO3\CMS\Backend\Sprite\SimpleSpriteHandler\generate().

◆ generate()

TYPO3\CMS\Backend\Sprite\SimpleSpriteHandler::generate ( )

Interface function. This will be called from the sprite manager to refresh all caches.


Implements TYPO3\CMS\Backend\Sprite\SpriteIconGeneratorInterface.

Definition at line 47 of file SimpleSpriteHandler.php.

References TYPO3\CMS\Backend\Sprite\SimpleSpriteHandler\buildCssAndRegisterIcons().

Member Data Documentation

◆ $styleSheetTemplateExtIcons

Initial value:
= '
.t3-icon-###NAME### {
background-position: 0px 0px !important;
background-image: url(\'###IMAGE###\') !important;
background-size: contain;

Definition at line 33 of file SimpleSpriteHandler.php.