function ItemResourceTestBase::getNormalizedPostEntity
Same name in other branches
- 9 core/modules/aggregator/tests/src/Functional/Rest/ItemResourceTestBase.php \Drupal\Tests\aggregator\Functional\Rest\ItemResourceTestBase::getNormalizedPostEntity()
Overrides EntityResourceTestBase::getNormalizedPostEntity
1 call to ItemResourceTestBase::getNormalizedPostEntity()
- ItemHalJsonTestBase::getNormalizedPostEntity in core/
modules/ aggregator/ tests/ src/ Functional/ Hal/ ItemHalJsonTestBase.php - Returns the normalized POST entity.
1 method overrides ItemResourceTestBase::getNormalizedPostEntity()
- ItemHalJsonTestBase::getNormalizedPostEntity in core/
modules/ aggregator/ tests/ src/ Functional/ Hal/ ItemHalJsonTestBase.php - Returns the normalized POST entity.
File
-
core/
modules/ aggregator/ tests/ src/ Functional/ Rest/ ItemResourceTestBase.php, line 142
Class
- ItemResourceTestBase
- ResourceTestBase for Item entity.
Namespace
Drupal\Tests\aggregator\Functional\RestCode
protected function getNormalizedPostEntity() {
return [
'fid' => [
[
'target_id' => 1,
],
],
'title' => [
[
'value' => 'Llama',
],
],
'link' => [
[
'value' => 'https://www.drupal.org/',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.