‪TYPO3CMS  9.5
HiddenViewHelper.php
Go to the documentation of this file.
1 <?php
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 
35 {
39  protected ‪$tagName = 'input';
40 
44  public function ‪initializeArguments()
45  {
46  parent::initializeArguments();
47  $this->registerUniversalTagAttributes();
48  }
49 
55  public function ‪render()
56  {
57  $name = $this->‪getName();
60 
61  $this->tag->addAttribute('type', 'hidden');
62  $this->tag->addAttribute('name', $name);
63  $this->tag->addAttribute('value', $this->‪getValueAttribute());
64 
66 
67  return $this->tag->render();
68  }
69 }
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\setRespectSubmittedDataValue
‪setRespectSubmittedDataValue($respectSubmittedDataValue)
Definition: AbstractFormFieldViewHelper.php:73
‪TYPO3\CMS\Fluid\ViewHelpers\Form
Definition: AbstractFormFieldViewHelper.php:2
‪TYPO3\CMS\Fluid\ViewHelpers\Form\HiddenViewHelper\$tagName
‪string $tagName
Definition: HiddenViewHelper.php:38
‪TYPO3\CMS\Fluid\ViewHelpers\Form\HiddenViewHelper\initializeArguments
‪initializeArguments()
Definition: HiddenViewHelper.php:43
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper\registerFieldNameForFormTokenGeneration
‪registerFieldNameForFormTokenGeneration($fieldName)
Definition: AbstractFormViewHelper.php:101
‪TYPO3\CMS\Fluid\ViewHelpers\Form\HiddenViewHelper\render
‪string render()
Definition: HiddenViewHelper.php:54
‪TYPO3\CMS\Fluid\ViewHelpers\Form\HiddenViewHelper
Definition: HiddenViewHelper.php:35
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper
Definition: AbstractFormFieldViewHelper.php:26
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\addAdditionalIdentityPropertiesIfNeeded
‪addAdditionalIdentityPropertiesIfNeeded()
Definition: AbstractFormFieldViewHelper.php:239
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\getName
‪string getName()
Definition: AbstractFormFieldViewHelper.php:86
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\getValueAttribute
‪mixed getValueAttribute()
Definition: AbstractFormFieldViewHelper.php:147