function FileUploadHalJsonTestBase::getNormalizedPostEntity
Same name in other branches
- 9 core/modules/hal/tests/src/Functional/file/FileUploadHalJsonTestBase.php \Drupal\Tests\hal\Functional\file\FileUploadHalJsonTestBase::getNormalizedPostEntity()
Overrides FileUploadResourceTestBase::getNormalizedPostEntity
See also
\Drupal\Tests\hal\Functional\EntityResource\EntityTest\EntityTestHalJsonAnonTest::getNormalizedPostEntity()
File
-
core/
modules/ file/ tests/ src/ Functional/ Hal/ FileUploadHalJsonTestBase.php, line 87
Class
- FileUploadHalJsonTestBase
- Tests binary data file upload route for HAL JSON.
Namespace
Drupal\Tests\file\Functional\HalCode
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.