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