‪TYPO3CMS  10.4
HiddenViewHelper.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
36 {
40  protected ‪$tagName = 'input';
41 
45  public function ‪initializeArguments()
46  {
47  parent::initializeArguments();
48  $this->registerUniversalTagAttributes();
49  }
50 
56  public function ‪render()
57  {
58  $name = $this->‪getName();
61 
62  $this->tag->addAttribute('type', 'hidden');
63  $this->tag->addAttribute('name', $name);
64  $this->tag->addAttribute('value', $this->‪getValueAttribute());
65 
67 
68  return $this->tag->render();
69  }
70 }
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\setRespectSubmittedDataValue
‪setRespectSubmittedDataValue($respectSubmittedDataValue)
Definition: AbstractFormFieldViewHelper.php:77
‪TYPO3\CMS\Fluid\ViewHelpers\Form
Definition: AbstractFormFieldViewHelper.php:16
‪TYPO3\CMS\Fluid\ViewHelpers\Form\HiddenViewHelper\$tagName
‪string $tagName
Definition: HiddenViewHelper.php:39
‪TYPO3\CMS\Fluid\ViewHelpers\Form\HiddenViewHelper\initializeArguments
‪initializeArguments()
Definition: HiddenViewHelper.php:44
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewHelper\registerFieldNameForFormTokenGeneration
‪registerFieldNameForFormTokenGeneration($fieldName)
Definition: AbstractFormViewHelper.php:106
‪TYPO3\CMS\Fluid\ViewHelpers\Form\HiddenViewHelper\render
‪string render()
Definition: HiddenViewHelper.php:55
‪TYPO3\CMS\Fluid\ViewHelpers\Form\HiddenViewHelper
Definition: HiddenViewHelper.php:36
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper
Definition: AbstractFormFieldViewHelper.php:30
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\addAdditionalIdentityPropertiesIfNeeded
‪addAdditionalIdentityPropertiesIfNeeded()
Definition: AbstractFormFieldViewHelper.php:243
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\getName
‪string getName()
Definition: AbstractFormFieldViewHelper.php:90
‪TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper\getValueAttribute
‪mixed getValueAttribute()
Definition: AbstractFormFieldViewHelper.php:151