TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Utility\IconUtilityOverrideResourceIconHookInterface Interface Reference

Public Member Functions

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Interface for classes which hook into IconUtility::getSpriteIconForResource()

Definition at line 20 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