TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Utility\IconUtilityOverrideResourceIconHookInterface Interface Reference

Public Member Functions

 overrideResourceIcon (\TYPO3\CMS\Core\Resource\ResourceInterface $resource, &$iconName, array &$options, array &$overlays)
 

Detailed Description

Interface for classes which hook into IconUtility::getSpriteIconForResource()

Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8

Definition at line 22 of file IconUtilityOverrideResourceIconHookInterface.php.

Member Function Documentation

◆ overrideResourceIcon()

TYPO3\CMS\Backend\Utility\IconUtilityOverrideResourceIconHookInterface::overrideResourceIcon ( \TYPO3\CMS\Core\Resource\ResourceInterface  $resource,
$iconName,
array &  $options,
array &  $overlays 
)

Influence the choice of icon and overlays for a ResourceIcon

The $iconName, $options and $overlays are passed as references in order to be modified within the hook

Parameters
\TYPO3\CMS\Core\Resource\ResourceInterface$resource
string$iconName
array$options
array$overlays
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8