function CommentHalJsonTestBase::getNormalizedPostEntity

Same name in other branches
  1. 8.9.x core/modules/comment/tests/src/Functional/Hal/CommentHalJsonTestBase.php \Drupal\Tests\comment\Functional\Hal\CommentHalJsonTestBase::getNormalizedPostEntity()

Overrides CommentResourceTestBase::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.