TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,45 @@
.. include:: /Includes.rst.txt
.. _feature-101133-1687875353:
========================================
Feature: #101133 - Native enum IconState
========================================
See :issue:`101133`
Description
===========
A new native backed enum :php:`\TYPO3\CMS\Core\Imaging\IconState` has been
introduced for streamlined usage within :php:`\TYPO3\CMS\Core\Imaging\Icon` and
:php:`\TYPO3\CMS\Core\Imaging\IconFactory`.
Impact
======
The new :php:`\TYPO3\CMS\Core\Imaging\IconState` native backed enum is meant
to be a drop-in replacement for the former
:php:`\TYPO3\CMS\Core\Type\Icon\IconState` class.
Example
=======
.. code-block:: php
<?php
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Imaging\IconState;
use TYPO3\CMS\Core\Utility\GeneralUtility;
$iconFactory = GeneralUtility::makeInstance(IconFactory::class);
$icon = $iconFactory->getIcon(
'my-icon',
TYPO3\CMS\Core\Imaging\Icon::SIZE_SMALL,
null,
IconState::STATE_DISABLED
);
.. index:: Backend, Frontend, ext:core