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,26 @@
.. include:: /Includes.rst.txt
.. _feature-78575:
=================================================================
Feature: #78575 - Enumeration constants don't provide their names
=================================================================
See :issue:`78575`
Description
===========
Requesting the name of Enumeration constants has been introduced.
There are two methods you can use:
:php:`MyEnumerationClass::getName($value);` will return the name exactly as it is. Usually this will be all uppercase and underscores.
:php:`MyEnumerationClass::getHumanReadableName($value);` replaces underscores with spaces and turns all words into lowercase with the first letter uppercase.
Impact
======
You can use the constant names as part of your application more easily.
.. index:: PHP-API