Layouts::factory()
Creates a new layouts collection from an array of layouts, a single layout or an array of blocks
Layouts::factory(array|null $items = null, array $params = []): Layouts
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $items | arrayornull |
null
|
|
| $params | array<string, mixed> |
[]
|
Collection options, see Items::__construct() |