function ShortcutHalJsonAnonTest::getExpectedNormalizedEntity
Same name in other branches
- 9 core/modules/hal/tests/src/Functional/shortcut/ShortcutHalJsonAnonTest.php \Drupal\Tests\hal\Functional\shortcut\ShortcutHalJsonAnonTest::getExpectedNormalizedEntity()
Overrides ShortcutResourceTestBase::getExpectedNormalizedEntity
File
-
core/
modules/ shortcut/ tests/ src/ Functional/ Hal/ ShortcutHalJsonAnonTest.php, line 41
Class
- ShortcutHalJsonAnonTest
- @group hal
Namespace
Drupal\Tests\shortcut\Functional\HalCode
protected function getExpectedNormalizedEntity() {
$default_normalization = parent::getExpectedNormalizedEntity();
$normalization = $this->applyHalFieldNormalization($default_normalization);
return $normalization + [
'_links' => [
'self' => [
'href' => $this->baseUrl . '/admin/config/user-interface/shortcut/link/1?_format=hal_json',
],
'type' => [
'href' => $this->baseUrl . '/rest/type/shortcut/default',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.