Feature: #101174 - Native enum InformationStatus¶
See forge#101174
Description¶
A new native backed enum \TYPO3\CMS\Backend\Toolbar\InformationStatus
has been introduced as a drop-in replacement for the for former
\TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus
class. It
is used to specify the severity of a system information, displayed in the
backend toolbar.
The new enum features the following values:
NOTICE
INFO
OK
WARNING
ERROR
Additionally, the isGreaterThan()
method is available to compare severities.
Impact¶
It's now possible to use the native \TYPO3\CMS\Backend\Toolbar\InformationStatus
enum to describe the severity of the system information for the backend toolbar.
Note
Compared to the deprecated
\TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus
class,
the new enum does not use the prefix STATUS_
for its values. Also
a special __default
constant is not available.