protected function EntityTestMapFieldHalJsonAnonTest::getNormalizedPostEntity in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestMapFieldHalJsonAnonTest.php \Drupal\Tests\entity_test\Functional\Hal\EntityTestMapFieldHalJsonAnonTest::getNormalizedPostEntity()
Returns the normalized POST entity.
Return value
array
Overrides EntityTestMapFieldResourceTestBase::getNormalizedPostEntity
See also
::testPost
File
- core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Hal/ EntityTestMapFieldHalJsonAnonTest.php, line 88
Class
- EntityTestMapFieldHalJsonAnonTest
- @group hal
Namespace
Drupal\Tests\entity_test\Functional\HalCode
protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
'_links' => [
'type' => [
'href' => $this->baseUrl . '/rest/type/entity_test_map_field/entity_test_map_field',
],
],
];
}