function PathAliasResourceTestBase::getNormalizedPostEntity

Same name in other branches
  1. 9 core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasResourceTestBase::getNormalizedPostEntity()
  2. 10 core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasResourceTestBase::getNormalizedPostEntity()
  3. 11.x core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php \Drupal\Tests\path_alias\Functional\Rest\PathAliasResourceTestBase::getNormalizedPostEntity()

Overrides EntityResourceTestBase::getNormalizedPostEntity

1 call to PathAliasResourceTestBase::getNormalizedPostEntity()
PathAliasHalJsonTestBase::getNormalizedPostEntity in core/modules/path_alias/tests/src/Functional/Hal/PathAliasHalJsonTestBase.php
Returns the normalized POST entity.
1 method overrides PathAliasResourceTestBase::getNormalizedPostEntity()
PathAliasHalJsonTestBase::getNormalizedPostEntity in core/modules/path_alias/tests/src/Functional/Hal/PathAliasHalJsonTestBase.php
Returns the normalized POST entity.

File

core/modules/path_alias/tests/src/Functional/Rest/PathAliasResourceTestBase.php, line 107

Class

PathAliasResourceTestBase
Base class for path_alias EntityResource tests.

Namespace

Drupal\Tests\path_alias\Functional\Rest

Code

protected function getNormalizedPostEntity() {
    return [
        'path' => [
            [
                'value' => '/<front>',
            ],
        ],
        'alias' => [
            [
                'value' => '/frontpage1',
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.