Skip to content

Kirby 5.1.2

Scope::access()

Access the key on the object/array during runtime

Scope::access() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

Scope::access(object|array|null $object, string|int $key, bool $nullSafe = false, ...$arguments): mixed

Parameters

Name Type Default
$object objectorarrayornull no default value
$keyrequired stringorint no default value
$nullSafe bool false
...$arguments mixed no default value

Return type

mixed

Parent class

Kirby\Query\Runners\Scope