ResourceTestBase::$jsonApiMember

Same name in other branches
  1. 9 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::jsonApiMember
  2. 10 core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::jsonApiMember
  3. 11.x core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php \Drupal\Tests\jsonapi\Functional\ResourceTestBase::jsonApiMember

The standard `jsonapi` top-level document member.

Type: array

File

core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php, line 166

Class

ResourceTestBase
Subclass this for every JSON:API resource type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

protected static $jsonApiMember = [
    'version' => '1.0',
    'meta' => [
        'links' => [
            'self' => [
                'href' => 'http://jsonapi.org/format/1.0/',
            ],
        ],
    ],
];

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