[FOLLOWUP][TASK] Move render arguments to initializeArguments() 80/49580/3
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 24 Aug 2016 18:06:30 +0000 (20:06 +0200)
committerBenni Mack <benni@typo3.org>
Mon, 29 Aug 2016 07:06:32 +0000 (09:06 +0200)
Readd the method 'render' to the ShortcutViewHelper

Resolves: #77529
Releases: master
Change-Id: I01bdd78e51a4b28d7caf89207982d99d66c59ff6
Reviewed-on: https://review.typo3.org/49580
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/fluid/Classes/ViewHelpers/Be/Buttons/ShortcutViewHelper.php

index 948ee25..d17c428 100644 (file)
@@ -65,6 +65,21 @@ class ShortcutViewHelper extends AbstractBackendViewHelper
     }
 
     /**
+     * Renders a shortcut button as known from the TYPO3 backend
+     *
+     * @return string the rendered shortcut button
+     * @see \TYPO3\CMS\Backend\Template\DocumentTemplate::makeShortcutIcon()
+     */
+    public function render()
+    {
+        return static::renderStatic(
+            $this->arguments,
+            $this->buildRenderChildrenClosure(),
+            $this->renderingContext
+        );
+    }
+
+    /**
      * @param array $arguments
      * @param \Closure $renderChildrenClosure
      * @param RenderingContextInterface $renderingContext