protected function PathAliasResourceTestBase::getNormalizedPostEntity in Drupal 10
Same name and namespace in other branches
- 8 core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasResourceTestBase::getNormalizedPostEntity()
- 9 core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasResourceTestBase::getNormalizedPostEntity()
Returns the normalized POST entity.
Return value
array
Overrides EntityResourceTestBase::getNormalizedPostEntity
See also
::testPost
File
- core/
modules/ path_alias/ tests/ src/ Functional/ Rest/ PathAliasResourceTestBase.php, line 104
Class
- PathAliasResourceTestBase
- Base class for path_alias EntityResource tests.
Namespace
Drupal\Tests\path_alias\Functional\RestCode
protected function getNormalizedPostEntity() {
return [
'path' => [
[
'value' => '/<front>',
],
],
'alias' => [
[
'value' => '/frontpage1',
],
],
];
}