function EntityTestHalJsonAnonTest::getNormalizedPostEntity

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestHalJsonAnonTest.php \Drupal\Tests\entity_test\Functional\Hal\EntityTestHalJsonAnonTest::getNormalizedPostEntity()

Overrides EntityTestResourceTestBase::getNormalizedPostEntity

1 call to EntityTestHalJsonAnonTest::getNormalizedPostEntity()
EntityTestHalJsonInternalPropertyNormalizerTest::getNormalizedPostEntity in core/modules/hal/tests/src/Functional/entity_test/EntityTestHalJsonInternalPropertyNormalizerTest.php
Returns the normalized POST entity.
1 method overrides EntityTestHalJsonAnonTest::getNormalizedPostEntity()
EntityTestHalJsonInternalPropertyNormalizerTest::getNormalizedPostEntity in core/modules/hal/tests/src/Functional/entity_test/EntityTestHalJsonInternalPropertyNormalizerTest.php
Returns the normalized POST entity.

File

core/modules/hal/tests/src/Functional/entity_test/EntityTestHalJsonAnonTest.php, line 87

Class

EntityTestHalJsonAnonTest
@group hal @group legacy

Namespace

Drupal\Tests\hal\Functional\entity_test

Code

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.