function CommentHalJsonTestBase::getNormalizedPostEntity
Same name in other branches
- 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
Namespace
Drupal\Tests\hal\Functional\commentCode
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.