function FileResourceTestBase::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/ file/ tests/ src/ Functional/ Rest/ FileResourceTestBase.php, line 203
Class
Namespace
Drupal\Tests\file\Functional\RestCode
protected function getNormalizedPatchEntity() {
return array_diff_key($this->getNormalizedPostEntity(), [
'uid' => TRUE,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.