ArrayElementViewHelper

class \TYPO3\CMS\Beuser\ViewHelpers\ArrayElementViewHelper

Extends
AbstractViewHelper
Uses
CompileWithRenderStatic

Get a value from an array by given key.

Table of Contents

Methods

initializeArguments()  : mixed
Initializes the arguments
renderStatic()  : string
Return array element by key. Accessed values must be scalar (string, int, float or double)

Methods

initializeArguments()

Initializes the arguments

public initializeArguments() : mixed

renderStatic()

Return array element by key. Accessed values must be scalar (string, int, float or double)

public static renderStatic(array{'array': array, 'key': string, 'subKey': string} $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string

Parameters

$arguments : array{'array': array, 'key': string, 'subKey': string}
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface

Tags

throws
Exception

Return values

string
On this page