You are here

protected function JsonapiParse::isIncluded in JSON:API Include 8

Check resource is include.

Parameters

array|mixed $resource: The resource to verify.

Return value

bool Check result.

1 call to JsonapiParse::isIncluded()
JsonapiParse::resolveData in src/JsonapiParse.php
Resolve data.

File

src/JsonapiParse.php, line 122

Class

JsonapiParse
Class JsonapiParse.

Namespace

Drupal\jsonapi_include

Code

protected function isIncluded($resource) {
  return isset($resource['type']) && isset($this->included[$resource['type']]);
}