Skip to content

Kirby 5.0.4

$optionsProvider->resolve()

Dynamically determines the actual options and resolves them to the correct text-value entries

$optionsProvider->resolve(Kirby\Cms\ModelWithContent $model, bool $safeMode = true): Kirby\Option\Options

Parameters

Name Type Default Description
$modelrequired Kirby\Cms\ModelWithContent no default value
$safeMode bool true Whether to escape special HTML characters in
the option text for safe output in the Panel;
only set to false if the text is later escaped!

Return type

Kirby\Option\Options

This method modifies the existing $optionsprovider object it is applied to and returns it again.

Parent class

Kirby\Option\OptionsProvider