[BUGFIX] iconIdentifier for custom system information panel items 21/53321/3
authorJosef Glatz <josefglatz@gmail.com>
Sun, 25 Jun 2017 08:03:11 +0000 (10:03 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 26 Jun 2017 09:44:02 +0000 (11:44 +0200)
An iconIdentifier is needed since the icon generation is
moved to the Fluid template. The third parameter of
addSystemInformation() needs to be an iconIdentifier
instead of an rendered icon html markup.

Resolves: #81694
Related: #80554
Releases: master, 8.7
Change-Id: Ib6b07281196b5ecda2de07b8d6328b524e08f038
Reviewed-on: https://review.typo3.org/53321
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php

index 1e6375b..78bcfb9 100644 (file)
@@ -300,15 +300,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 $iconIdentifier The icon identifier
      * @param string $status The status of this system information
      */
-    public function addSystemInformation($title, $value, $icon, $status = InformationStatus::STATUS_NOTICE)
+    public function addSystemInformation($title, $value, $iconIdentifier, $status = InformationStatus::STATUS_NOTICE)
     {
         $this->systemInformation[] = [
             'title' => $title,
             'value' => $value,
-            'icon' => $icon,
+            'iconIdentifier' => $iconIdentifier,
             'status' => $status
         ];
     }