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