private function EntityResource::setFilterValue in JSON:API Extras 8.3
Set filter into nested array.
Parameters
array $arr: The default filter.
string $path: The filter path.
mixed $value: The filter value.
1 call to EntityResource::setFilterValue()
- EntityResource::getJsonApiParams in modules/
jsonapi_defaults/ src/ Controller/ EntityResource.php - Extracts JSON:API query parameters from the request.
File
- modules/
jsonapi_defaults/ src/ Controller/ EntityResource.php, line 186
Class
- EntityResource
- Overrides jsonapi module EntityResource controller.
Namespace
Drupal\jsonapi_defaults\ControllerCode
private function setFilterValue(array &$arr, $path, $value) {
$keys = explode('#', $path);
foreach ($keys as $key) {
$arr =& $arr[$key];
}
$arr = $value;
}