RenderFormValueViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <formvh:renderformvalue>
Renders a single value of a form
Scope: frontend
Table of Contents
Properties
- $escapeOutput : bool
Methods
- initializeArguments() : mixed
- Initialize the arguments
- 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
- renderStatic() : string
- Return array element by key
Properties
$escapeOutput
protected
bool
$escapeOutput
= false
Methods
initializeArguments()
Initialize the arguments
public
initializeArguments() : mixed
isEnabled()
public
static isEnabled(RenderableInterface $renderable) : bool
Parameters
- $renderable : RenderableInterface
Return values
boolmapValuesToOptions()
Replaces the given values (=keys) with the corresponding elements in $options
public
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
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
public
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
public
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
public
static processObject(FormElementInterface $element, object $object) : string
Parameters
- $element : FormElementInterface
- $object : object
Return values
stringrenderStatic()
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 —the rendered form values