function TermResourceTestBase::getNormalizedPostEntity
Same name in other branches
- 9 core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::getNormalizedPostEntity()
- 10 core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::getNormalizedPostEntity()
- 11.x core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php \Drupal\Tests\taxonomy\Functional\Rest\TermResourceTestBase::getNormalizedPostEntity()
Overrides EntityResourceTestBase::getNormalizedPostEntity
1 call to TermResourceTestBase::getNormalizedPostEntity()
- TermHalJsonAnonTest::getNormalizedPostEntity in core/
modules/ taxonomy/ tests/ src/ Functional/ Hal/ TermHalJsonAnonTest.php - Returns the normalized POST entity.
1 method overrides TermResourceTestBase::getNormalizedPostEntity()
- TermHalJsonAnonTest::getNormalizedPostEntity in core/
modules/ taxonomy/ tests/ src/ Functional/ Hal/ TermHalJsonAnonTest.php - Returns the normalized POST entity.
File
-
core/
modules/ taxonomy/ tests/ src/ Functional/ Rest/ TermResourceTestBase.php, line 230
Class
Namespace
Drupal\Tests\taxonomy\Functional\RestCode
protected function getNormalizedPostEntity() {
return [
'vid' => [
[
'target_id' => 'camelids',
],
],
'name' => [
[
'value' => 'Dramallama',
],
],
'description' => [
[
'value' => 'Dramallamas are the coolest camelids.',
'format' => NULL,
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.