InArrayViewHelper

class \TYPO3\CMS\Impexp\ViewHelpers\InArrayViewHelper

Extends
AbstractConditionViewHelper

ViewHelper to check if a value exists in an array.

  <option value="{optionValue}"
    {impexp:inArray(needle:optionValue, haystack:inData.pagetree.tables, then:'selected="selected"')}>
    {optionLabel}
  </option>

Table of Contents

Methods

initializeArguments()  : void
verdict()  : bool

Methods

initializeArguments()

public initializeArguments() : void

verdict()

public static verdict(array $arguments, RenderingContextInterface $renderingContext) : bool

Parameters

$arguments : array
$renderingContext : RenderingContextInterface

Return values

bool
On this page