Skip to content

Kirby 3.8.4

View::applyOnly()

Checks if the request should only return a limited set of data. This can be activated with the X-Fiber-Only header or the _only query parameter in a request.

View::applyOnly(array $data, string $only = null): array

Parameters

Name Type Default
$data * array
$only string null

Return type

array

Parent class

Kirby\Panel\View