function 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.