Deprecation: #101133 - IconState class

See forge#101133

Description

The class \TYPO3\CMS\Core\Type\Icon\IconState is marked as deprecated.

Impact

The class \TYPO3\CMS\Core\Type\Icon\IconState will be removed in TYPO3 v14.0. Passing an instance of this class to \TYPO3\CMS\Core\Imaging\IconFactory->getIcon() will lead to a deprecation level log entry.

Affected installations

All installations using the class \TYPO3\CMS\Core\Type\Icon\IconState.

Migration

// Before
$state = \TYPO3\CMS\Core\Type\Icon\IconState::cast(
    \TYPO3\CMS\Core\Type\Icon\IconState::STATE_DEFAULT
);

// After
$state = \TYPO3\CMS\Core\Imaging\IconState::STATE_DEFAULT;
Copied!