function FileResourceTestBase::getNormalizedPostEntity
Same name in other branches
- 9 core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::getNormalizedPostEntity()
- 8.9.x core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::getNormalizedPostEntity()
- 10 core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::getNormalizedPostEntity()
Overrides EntityResourceTestBase::getNormalizedPostEntity
1 call to FileResourceTestBase::getNormalizedPostEntity()
- FileResourceTestBase::getNormalizedPatchEntity in core/
modules/ file/ tests/ src/ Functional/ Rest/ FileResourceTestBase.php - Returns the normalized PATCH entity.
File
-
core/
modules/ file/ tests/ src/ Functional/ Rest/ FileResourceTestBase.php, line 185
Class
Namespace
Drupal\Tests\file\Functional\RestCode
protected function getNormalizedPostEntity() {
return [
'uid' => [
[
'target_id' => $this->author
->id(),
],
],
'filename' => [
[
'value' => 'drupal.txt',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.