condition.string.contains ViewHelper <vhs:condition.string.contains>
¶
Condition: String contains substring¶
Condition ViewHelper which renders the then
child if provided
string $haystack contains provided string $needle.
Arguments¶
then¶
- DataType
mixed
- Required
false
- Description
Value to be returned if the condition if met.
else¶
- DataType
mixed
- Required
false
- Description
Value to be returned if the condition if not met.
haystack¶
- DataType
string
- Required
true
- Description
Haystack
needle¶
- DataType
string
- Required
true
- Description
Need