$layouts->toBlocks()
Converts layouts to blocks
Parameters
Name | Type | Default | Description |
---|---|---|---|
$includeHidden | bool |
false |
Sets whether to include hidden blocks |
Return type
Parent class
Example
The method makes it easy to filter blocks from layouts: