Skip to content

Kirby 6.0.0

OptionsApi::factory()

Creates a new instance from the URL or an array of props

OptionsApi::factory(array|string $props): OptionsApi

Parameters

Name Type Default
$propsrequired arrayorstring no default value

Return type

Kirby\Option\OptionsApi

Parent class

Kirby\Option\OptionsApi