Skip to content

Kirby 3.6.6

View::applyGlobals()

Checks if globals should be included in a JSON Fiber request. They are normally only loaded with the full document request, but sometimes need to be updated.

View::applyGlobals(array $data, string $globals = null): array

Parameters

Name Type Default
$data * array
$globals string null

Return type

array

Parent class

Kirby\Panel\View