function NullIncludedData::__construct
Same name in other branches
- 9 core/modules/jsonapi/src/JsonApiResource/NullIncludedData.php \Drupal\jsonapi\JsonApiResource\NullIncludedData::__construct()
- 8.9.x core/modules/jsonapi/src/JsonApiResource/NullIncludedData.php \Drupal\jsonapi\JsonApiResource\NullIncludedData::__construct()
- 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\JsonApiResourceCode
public function __construct() {
parent::__construct([]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.