$blocks->hasType()
Checks if a given block type exists in the collection
Parameters
Name | Type | Default |
---|---|---|
$type * | string |
– |
Return type
bool
Parent class
Example
Useful if you want to include scripts etc. depending on block types.
Checks if a given block type exists in the collection
Name | Type | Default |
---|---|---|
$type * | string |
– |
bool
Useful if you want to include scripts etc. depending on block types.