Contains ViewHelper <f:contains> 

The ContainsViewHelper checks if a provided string or array contains the specified value. Depending on the input, this mimicks PHP's in_array() or str_contains() .

Go to the source code of this ViewHelper: ContainsViewHelper.php (GitHub).

Arguments of the <f:contains> ViewHelper 

else

else
Type
mixed
Value to be returned if the condition if not met.

subject

subject
Type
mixed
Required
1
The string or array that might contain the value (haystack)

then

then
Type
mixed
Value to be returned if the condition if met.

value

value
Type
mixed
Required
1
The value to check for (needle)