function MessageHalJsonAnonTest::getNormalizedPostEntity
Same name in other branches
- 8.9.x core/modules/contact/tests/src/Functional/Hal/MessageHalJsonAnonTest.php \Drupal\Tests\contact\Functional\Hal\MessageHalJsonAnonTest::getNormalizedPostEntity()
Overrides MessageResourceTestBase::getNormalizedPostEntity
File
-
core/
modules/ hal/ tests/ src/ Functional/ contact/ MessageHalJsonAnonTest.php, line 41
Class
- MessageHalJsonAnonTest
- @group hal @group legacy
Namespace
Drupal\Tests\hal\Functional\contactCode
protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
'_links' => [
'type' => [
'href' => $this->baseUrl . '/rest/type/contact_message/camelids',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.