function ItemHalJsonTestBase::getNormalizedPostEntity
Same name in other branches
- 8.9.x core/modules/aggregator/tests/src/Functional/Hal/ItemHalJsonTestBase.php \Drupal\Tests\aggregator\Functional\Hal\ItemHalJsonTestBase::getNormalizedPostEntity()
Overrides ItemResourceTestBase::getNormalizedPostEntity
File
-
core/
modules/ hal/ tests/ src/ Functional/ aggregator/ ItemHalJsonTestBase.php, line 80
Class
- ItemHalJsonTestBase
- ResourceTestBase for Item entity.
Namespace
Drupal\Tests\hal\Functional\aggregatorCode
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.