‪TYPO3CMS  ‪main
TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper:

Public Member Functions

 initializeArguments ()
 

Static Public Member Functions

static renderStatic (array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Static Protected Member Functions

static mixed processElementValue (FormElementInterface $element, $value, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 
static mapValuesToOptions (array $value, array $options)
 
static mixed mapValueToOption ($value, array $options)
 
static processObject (FormElementInterface $element, $object)
 
static isEnabled (RenderableInterface $renderable)
 

Protected Attributes

bool $escapeOutput = false
 

Detailed Description

Renders a single value of a form

Scope: frontend

Definition at line 40 of file RenderFormValueViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper::initializeArguments ( )

Definition at line 47 of file RenderFormValueViewHelper.php.

◆ isEnabled()

static TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper::isEnabled ( RenderableInterface  $renderable)
staticprotected

◆ mapValuesToOptions()

static TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper::mapValuesToOptions ( array  $value,
array  $options 
)
staticprotected

Replaces the given values (=keys) with the corresponding elements in $options.

See also
mapValueToOption()

Definition at line 130 of file RenderFormValueViewHelper.php.

References TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper\mapValueToOption().

Referenced by TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper\processElementValue().

◆ mapValueToOption()

static mixed TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper::mapValueToOption (   $value,
array  $options 
)
staticprotected

Replaces the given value (=key) with the corresponding element in $options If the key does not exist in $options, it is returned without modification

Parameters
mixed$value
Returns
‪mixed

Definition at line 146 of file RenderFormValueViewHelper.php.

Referenced by TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper\mapValuesToOptions(), and TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper\processElementValue().

◆ processElementValue()

static mixed TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper::processElementValue ( FormElementInterface  $element,
  $value,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
staticprotected

◆ processObject()

static TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper::processObject ( FormElementInterface  $element,
  $object 
)
staticprotected

Converts the given $object to a string representation considering the $element FormElement definition.

Parameters
object$object

Definition at line 156 of file RenderFormValueViewHelper.php.

Referenced by TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper\processElementValue().

◆ renderStatic()

static TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

Member Data Documentation

◆ $escapeOutput

bool TYPO3\CMS\Form\ViewHelpers\RenderFormValueViewHelper::$escapeOutput = false
protected

Definition at line 45 of file RenderFormValueViewHelper.php.