function WorkspaceResourceTestBase::getNormalizedPatchEntity
Returns the normalized PATCH entity.
By default, reuses ::getNormalizedPostEntity(), which works fine for most entity types. A counterexample: the 'comment' entity type.
Return value
array
Overrides EntityResourceTestBase::getNormalizedPatchEntity
File
-
core/
modules/ workspaces/ tests/ src/ Functional/ EntityResource/ WorkspaceResourceTestBase.php, line 165
Class
- WorkspaceResourceTestBase
- Base class for workspace EntityResource tests.
Namespace
Drupal\Tests\workspaces\Functional\EntityResourceCode
protected function getNormalizedPatchEntity() {
return [
'label' => [
[
'value' => 'Running on faith',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.