[TASK] Call explicit render() on icon objects
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / ContextMenu / AbstractContextMenuDataProvider.php
index 8bfbbdf..69abca2 100644 (file)
@@ -201,7 +201,7 @@ abstract class AbstractContextMenuDataProvider {
                                if (!isset($actionConfiguration['iconName'])) {
                                        $actionConfiguration['iconName'] = 'miscellaneous-placeholder';
                                }
-                               $action->setIcon((string)$iconFactory->getIcon($actionConfiguration['iconName'], Icon::SIZE_SMALL));
+                               $action->setIcon($iconFactory->getIcon($actionConfiguration['iconName'], Icon::SIZE_SMALL)->render());
                        }
                        $actionCollection->offsetSet($level . (int)$index, $action);
                        $actionCollection->ksort();