function JsonApiDocumentTopLevel::getIncludes

Same name in other branches
  1. 8.9.x core/modules/jsonapi/src/JsonApiResource/JsonApiDocumentTopLevel.php \Drupal\jsonapi\JsonApiResource\JsonApiDocumentTopLevel::getIncludes()
  2. 10 core/modules/jsonapi/src/JsonApiResource/JsonApiDocumentTopLevel.php \Drupal\jsonapi\JsonApiResource\JsonApiDocumentTopLevel::getIncludes()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.