Skip to content
Snippets Groups Projects
Commit 5cabf135 authored by Christopher Orth's avatar Christopher Orth Committed by Frank Naegler
Browse files

[FEATURE] Add missing information status for addSystemMessage

Adds the possibility to pass and set status parameter
TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus through
addSystemInformation() in SystemInformationToolbarItem.

Resolves: #78103
Releases: master
Change-Id: I9a6027ec6f144a1aee4341fc592f362e0e7f2681
Reviewed-on: https://review.typo3.org/50060


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarMathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarJosef Glatz <josef.glatz@typo3.org>
Reviewed-by: default avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: default avatarFrank Naegler <frank.naegler@typo3.org>
parent cf18e8b9
Branches
Tags
No related merge requests found
......@@ -347,13 +347,15 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
* @param string $title The title of this system information
* @param string $value The associated value
* @param string $icon The icon html
* @param string $status The status of this system information
*/
public function addSystemInformation($title, $value, $icon)
public function addSystemInformation($title, $value, $icon, $status = InformationStatus::STATUS_NOTICE)
{
$this->systemInformation[] = [
'title' => $title,
'value' => $value,
'icon' => $icon
'icon' => $icon,
'status' => $status
];
}
......
.. include:: ../../Includes.txt
=====================================================================
Feature: #78103 - Add missing information status for addSystemMessage
=====================================================================
See :forge:`78103`
Description
===========
Adds the possibility to pass and set status parameter TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus
through addSystemInformation() in SystemInformationToolbarItem.
Impact
======
All system information added by `addSystemInformation()` will now pass `InformationStatus::STATUS_NOTICE`
as default value.
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment