[TASK] Add method to get all registered icon identifiers 10/42610/4
authorFrank Nägler <frank.naegler@typo3.org>
Fri, 14 Aug 2015 10:10:12 +0000 (12:10 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 14 Aug 2015 10:21:00 +0000 (12:21 +0200)
Resolves: #69054
Releases: master
Change-Id: I93bd5688b61520738d742ac5588379f86dad073c
Reviewed-on: http://review.typo3.org/42610
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Imaging/IconRegistry.php

index f166847..865f15f 100644 (file)
@@ -198,7 +198,7 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
        protected $defaultIconIdentifier = 'default-not-found';
 
        /**
-        * @param $identifier
+        * @param string $identifier
         *
         * @return bool
         */
@@ -245,4 +245,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                }
                return $this->icons[$identifier];
        }
+
+       /**
+        * @return array
+        * @internal
+        */
+       public function getAllRegisteredIconIdentifiers() {
+               return array_keys($this->icons);
+       }
 }