You are here

public function JsonApiDocumentTopLevel::getIncludes in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/JsonApiResource/JsonApiDocumentTopLevel.php \Drupal\jsonapi\JsonApiResource\JsonApiDocumentTopLevel::getIncludes()
  2. 9 core/modules/jsonapi/src/JsonApiResource/JsonApiDocumentTopLevel.php \Drupal\jsonapi\JsonApiResource\JsonApiDocumentTopLevel::getIncludes()

Gets a JSON:API Data object of resources to be included in the response.

Return value

\Drupal\jsonapi\JsonApiResource\IncludedData The includes.

File

core/modules/jsonapi/src/JsonApiResource/JsonApiDocumentTopLevel.php, line 117

Class

JsonApiDocumentTopLevel
Represents a JSON:API document's "top level".

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function getIncludes() {
  return $this->includes;
}