protected function JsonapiParse::parseResource in JSON:API Include 8
Parse Resource.
Parameters
array|mixed $item: The data for resolve.
Return value
array Result.
1 call to JsonapiParse::parseResource()
- JsonapiParse::parseJsonContent in src/
JsonapiParse.php - Parse json content.
File
- src/
JsonapiParse.php, line 199
Class
- JsonapiParse
- Class JsonapiParse.
Namespace
Drupal\jsonapi_includeCode
protected function parseResource($item) {
$attributes = $this
->resolveAttributes($item);
return $this
->resolveRelationships($attributes);
}