function FileUploadHalJsonTestBase::getNormalizedPostEntity
Same name in other branches
- 8.9.x core/modules/file/tests/src/Functional/Hal/FileUploadHalJsonTestBase.php \Drupal\Tests\file\Functional\Hal\FileUploadHalJsonTestBase::getNormalizedPostEntity()
Overrides FileUploadResourceTestBase::getNormalizedPostEntity
See also
\Drupal\Tests\hal\Functional\EntityResource\EntityTest\EntityTestHalJsonAnonTest::getNormalizedPostEntity()
File
-
core/
modules/ hal/ tests/ src/ Functional/ file/ FileUploadHalJsonTestBase.php, line 87
Class
- FileUploadHalJsonTestBase
- Tests binary data file upload route for HAL JSON.
Namespace
Drupal\Tests\hal\Functional\fileCode
protected function getNormalizedPostEntity() {
return parent::getNormalizedPostEntity() + [
'_links' => [
'type' => [
'href' => $this->baseUrl . '/rest/type/entity_test/entity_test',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.