Skip to content

Kirby 6.0.0

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(mixed $object, string|int $key, bool $nullSafe = false, mixed ...$arguments): mixed

Parameters

Name Type Default
$objectrequired mixed 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