[!!!][TASK] Remove CMS base ViewHelper classes
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Classes / ViewHelpers / Link / ActionViewHelper.php
1 <?php
2 namespace TYPO3\CMS\Extensionmanager\ViewHelpers\Link;
3
4 /*
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * A view helper for creating links to extensionmanager actions
19 *
20 * @internal
21 */
22 class ActionViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper
23 {
24 /**
25 * @var string
26 */
27 protected $tagName = 'a';
28
29 /**
30 * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
31 */
32 protected $objectManager;
33
34 /**
35 * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
36 */
37 public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
38 {
39 $this->objectManager = $objectManager;
40 }
41
42 /**
43 * Arguments initialization
44 */
45 public function initializeArguments()
46 {
47 parent::initializeArguments();
48 $this->registerUniversalTagAttributes();
49 $this->registerTagAttribute('name', 'string', 'Specifies the name of an anchor');
50 $this->registerTagAttribute('rel', 'string', 'Specifies the relationship between the current document and the linked document');
51 $this->registerTagAttribute('rev', 'string', 'Specifies the relationship between the linked document and the current document');
52 $this->registerTagAttribute('target', 'string', 'Specifies where to open the linked document');
53 }
54 }