RenderFormValueViewHelper extends AbstractViewHelper

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
render()  : 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

render()

Return array element by key

public render() : string
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 processElementValue(FormElementInterface $element, mixed $value) : mixed
Parameters
$element : FormElementInterface
$value : mixed

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