function CommentHalJsonTestBase::getNormalizedPostEntity

File

core/modules/hal/tests/src/Functional/comment/CommentHalJsonTestBase.php, line 120

Class

CommentHalJsonTestBase

Namespace

Drupal\Tests\hal\Functional\comment

Code

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

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