function NodeHalJsonAnonTest::getNormalizedPostEntity

Same name and namespace in other branches
  1. 9 core/modules/hal/tests/src/Functional/node/NodeHalJsonAnonTest.php \Drupal\Tests\hal\Functional\node\NodeHalJsonAnonTest::getNormalizedPostEntity()

File

core/modules/node/tests/src/Functional/Hal/NodeHalJsonAnonTest.php, line 119

Class

NodeHalJsonAnonTest
@group hal

Namespace

Drupal\Tests\node\Functional\Hal

Code

protected function getNormalizedPostEntity() {
  return parent::getNormalizedPostEntity() + [
    '_links' => [
      'type' => [
        'href' => $this->baseUrl . '/rest/type/node/camelids',
      ],
    ],
  ];
}

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