IsArrayViewHelper

final class \TYPO3\CMS\Backend\ViewHelpers\Type\IsArrayViewHelper

Extends
AbstractViewHelper

ViewHelper to check whether the given value is an array.

   <f:if condition="{be:type.isArray(value: myVariable)}">
       <f:then>myVariable is an array</f:then>
       <f:else>myVariable is not an array</f:else>
   </f:if>

Tags

see
https://docs.typo3.org/permalink/t3viewhelper:typo3-backend-type-isarray

Table of Contents

Methods

initializeArguments()  : void
render()  : bool

Methods

initializeArguments()

public initializeArguments() : void

render()

public render() : bool

Return values

bool
On this page