public function NullIncludedData::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/jsonapi/src/JsonApiResource/NullIncludedData.php \Drupal\jsonapi\JsonApiResource\NullIncludedData::__construct()
- 10 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([]);
}