Skip to content

Kirby 6.0.0

Structure::factory()

Creates a new structure collection from an array of item props

Structure::factory(array|null $items = null, array $params = []): Structure

Parameters

Name Type Default
$items arrayornull null
$params array []

Return type

Kirby\Cms\Structure

Parent class

Kirby\Cms\Structure