[FEATURE] Add missing information status for addSystemMessage 60/50060/3
authorChristopher Orth <corthmail@gmail.com>
Wed, 28 Sep 2016 18:20:56 +0000 (20:20 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 21 Oct 2016 12:14:02 +0000 (14:14 +0200)
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: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php
typo3/sysext/core/Documentation/Changelog/master/Feature-78103-AddMissingInformationStatusForAddSystemMessage.rst [new file with mode: 0644]

index 55c66f8..4240d49 100644 (file)
@@ -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
         ];
     }
 
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-78103-AddMissingInformationStatusForAddSystemMessage.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-78103-AddMissingInformationStatusForAddSystemMessage.rst
new file mode 100644 (file)
index 0000000..b313815
--- /dev/null
@@ -0,0 +1,20 @@
+.. 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