RenderFormValueViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
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
- 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 $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
- $arguments : array
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface
Return values
stringisEnabled()
protected
static isEnabled(RenderableInterface $renderable) : bool
Parameters
- $renderable : RenderableInterface
Return values
boolmapValuesToOptions()
Replaces the given values (=keys) with the corresponding elements in $options.
protected
static mapValuesToOptions(array $value, array $options) : array
Parameters
- $value : array
- $options : array
Tags
Return values
arraymapValueToOption()
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 $options) : mixed
Parameters
- $value : mixed
- $options : array
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