annotate 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
rev   line source
Chris@5 1 <?php
Chris@5 2
Chris@5 3 namespace Drupal\jsonapi\JsonApiResource;
Chris@5 4
Chris@5 5 /**
Chris@5 6 * Use when there are no included resources but a Data object is required.
Chris@5 7 *
Chris@5 8 * @internal JSON:API maintains no PHP API. The API is the HTTP API. This class
Chris@5 9 * may change at any time and could break any dependencies on it.
Chris@5 10 *
Chris@5 11 * @see https://www.drupal.org/project/jsonapi/issues/3032787
Chris@5 12 * @see jsonapi.api.php
Chris@5 13 */
Chris@5 14 class NullIncludedData extends IncludedData {
Chris@5 15
Chris@5 16 /**
Chris@5 17 * NullData constructor.
Chris@5 18 */
Chris@5 19 public function __construct() {
Chris@5 20 parent::__construct([]);
Chris@5 21 }
Chris@5 22
Chris@5 23 }