function EntityTestLabelResourceTestBase::getNormalizedPostEntity
Returns the normalized POST entity.
Return value
array
Overrides EntityResourceTestBase::getNormalizedPostEntity
File
-
core/
modules/ system/ tests/ modules/ entity_test/ tests/ src/ Functional/ Rest/ EntityTestLabelResourceTestBase.php, line 122
Class
Namespace
Drupal\Tests\entity_test\Functional\RestCode
protected function getNormalizedPostEntity() {
return [
'type' => [
[
'value' => 'entity_test_label',
],
],
'name' => [
[
'value' => 'label_llama',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.