RenderFormValueViewHelper extends AbstractViewHelper uses CompileWithRenderStatic

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <formvh:renderformvalue>

FinalYes

Renders a single value of a form

Scope: frontend

Table of Contents

Properties

$escapeOutput  : bool

Methods

initializeArguments()  : void
renderStatic()  : string
Return array element by key
isEnabled()  : bool
mapValuesToOptions()  : array<string|int, mixed>
Replaces the given values (=keys) with the corresponding elements in $options.
mapValueToOption()  : mixed
Replaces the given value (=key) with the corresponding element in $options If the key does not exist in $options, it is returned without modification
processElementValue()  : mixed
Converts the given value to a simple type (string or array) considering the underlying FormElement definition.
processObject()  : string
Converts the given $object to a string representation considering the $element FormElement definition.

Properties

$escapeOutput

protected bool $escapeOutput = false

Methods

initializeArguments()

public initializeArguments() : void

renderStatic()

Return array element by key

public static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
$arguments : array<string|int, mixed>
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface
Return values
string

mapValuesToOptions()

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

protected static mapValuesToOptions(array<string|int, mixed> $value, array<string|int, mixed> $options) : array<string|int, mixed>
Parameters
$value : array<string|int, mixed>
$options : array<string|int, mixed>
Tags
see
mapValueToOption()
Return values
array<string|int, mixed>

mapValueToOption()

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

protected static mapValueToOption(mixed $value, array<string|int, mixed> $options) : mixed
Parameters
$value : mixed
$options : array<string|int, mixed>

processElementValue()

Converts the given value to a simple type (string or array) considering the underlying FormElement definition.

protected static processElementValue(FormElementInterface $element, mixed $value, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : mixed
Parameters
$element : FormElementInterface
$value : mixed
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface

processObject()

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

protected static processObject(FormElementInterface $element, object $object) : string
Parameters
$element : FormElementInterface
$object : object
Return values
string

        
On this page

Search results