Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/jsonapi/src/JsonApiResource/NullIncludedData.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\jsonapi\JsonApiResource; | |
4 | |
5 /** | |
6 * Use when there are no included resources but a Data object is required. | |
7 * | |
8 * @internal JSON:API maintains no PHP API. The API is the HTTP API. This class | |
9 * may change at any time and could break any dependencies on it. | |
10 * | |
11 * @see https://www.drupal.org/project/jsonapi/issues/3032787 | |
12 * @see jsonapi.api.php | |
13 */ | |
14 class NullIncludedData extends IncludedData { | |
15 | |
16 /** | |
17 * NullData constructor. | |
18 */ | |
19 public function __construct() { | |
20 parent::__construct([]); | |
21 } | |
22 | |
23 } |