Skip to content

Kirby 4.5.0

Structure::factory()

Creates a new structure collection from a an array of item props

Structure::factory(?array $items = null, array $params = [ ]): Kirby\Cms\Structure

Parameters

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

Return type

Kirby\Cms\Structure

Parent class

Kirby\Cms\Structure