[TASK] Replace icon by IconFactory: apps-toolbar-menu-actions 45/43245/3
authorJan Helke <typo3@helke.de>
Sat, 12 Sep 2015 16:04:03 +0000 (18:04 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 12 Sep 2015 22:24:39 +0000 (00:24 +0200)
Releases: master
Resolves: #69738
Change-Id: Ib1fe7c9ac3520c22a11f21b93637e45cef102a6d
Reviewed-on: http://review.typo3.org/43245
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/sys_action/Classes/Backend/ToolbarItems/ActionToolbarItem.php

index a7fcfaa..1313fc2 100644 (file)
@@ -70,6 +70,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                                'name' => 'th-large',
                        )
                ),
+               'apps-toolbar-menu-actions' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'cog',
+                       )
+               ),
                'apps-pagetree-page-domain' => array(
                        'provider' => BitmapIconProvider::class,
                        'options' => array(
index 2349140..988c1a3 100644 (file)
@@ -17,6 +17,9 @@ namespace TYPO3\CMS\SysAction\Backend\ToolbarItems;
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Backend\Toolbar\ToolbarItemInterface;
 use TYPO3\CMS\Backend\Utility\IconUtility;
+use TYPO3\CMS\Core\Imaging\Icon;
+use TYPO3\CMS\Core\Imaging\IconFactory;
+use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
  * Adds action links to the backend's toolbar
@@ -42,12 +45,10 @@ class ActionToolbarItem implements ToolbarItemInterface {
         * @return string HTML
         */
        public function getItem() {
-               return IconUtility::getSpriteIcon(
-                       'apps-toolbar-menu-actions',
-                       array(
-                               'title' => $this->getLanguageService()->getLL('action_toolbaritem', TRUE)
-                       )
-               );
+               /** @var IconFactory $iconFactory */
+               $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
+               $title = $this->getLanguageService()->getLL('action_toolbaritem', TRUE);
+               return '<span title="' . $title . '">' . $iconFactory->getIcon('apps-toolbar-menu-actions', Icon::SIZE_SMALL)->render() . '</span>';
        }
 
        /**