function ItemHalJsonTestBase::getNormalizedPostEntity
Same name in other branches
- 9 core/modules/hal/tests/src/Functional/aggregator/ItemHalJsonTestBase.php \Drupal\Tests\hal\Functional\aggregator\ItemHalJsonTestBase::getNormalizedPostEntity()
Overrides ItemResourceTestBase::getNormalizedPostEntity
File
-
core/
modules/ aggregator/ tests/ src/ Functional/ Hal/ ItemHalJsonTestBase.php, line 80
Class
- ItemHalJsonTestBase
- ResourceTestBase for Item entity.
Namespace
Drupal\Tests\aggregator\Functional\HalCode
protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
'_links' => [
'type' => [
'href' => $this->baseUrl . '/rest/type/aggregator_item/aggregator_item',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.