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|null $globals = null): array
Parameters
Name | Type | Default |
---|---|---|
$datarequired | array |
no default value |
$globals | string ornull |
null
|
Return type
array