function NullIncludedData::__construct

Same name in other branches
  1. 9 core/modules/jsonapi/src/JsonApiResource/NullIncludedData.php \Drupal\jsonapi\JsonApiResource\NullIncludedData::__construct()
  2. 10 core/modules/jsonapi/src/JsonApiResource/NullIncludedData.php \Drupal\jsonapi\JsonApiResource\NullIncludedData::__construct()
  3. 11.x core/modules/jsonapi/src/JsonApiResource/NullIncludedData.php \Drupal\jsonapi\JsonApiResource\NullIncludedData::__construct()

NullData constructor.

Overrides IncludedData::__construct

File

core/modules/jsonapi/src/JsonApiResource/NullIncludedData.php, line 19

Class

NullIncludedData
Use when there are no included resources but a Data object is required.

Namespace

Drupal\jsonapi\JsonApiResource

Code

public function __construct() {
    parent::__construct([]);
}

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