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