function MessageHalJsonAnonTest::getNormalizedPostEntity
Same name in other branches
- 9 core/modules/hal/tests/src/Functional/contact/MessageHalJsonAnonTest.php \Drupal\Tests\hal\Functional\contact\MessageHalJsonAnonTest::getNormalizedPostEntity()
Overrides MessageResourceTestBase::getNormalizedPostEntity
File
-
core/
modules/ contact/ tests/ src/ Functional/ Hal/ MessageHalJsonAnonTest.php, line 40
Class
- MessageHalJsonAnonTest
- @group hal
Namespace
Drupal\Tests\contact\Functional\HalCode
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.