function MessageHalJsonAnonTest::getNormalizedPostEntity

Overrides MessageResourceTestBase::getNormalizedPostEntity

File

core/modules/hal/tests/src/Functional/contact/MessageHalJsonAnonTest.php, line 41

Class

MessageHalJsonAnonTest
@group hal @group legacy

Namespace

Drupal\Tests\hal\Functional\contact

Code

protected function getNormalizedPostEntity() {
  return parent::getNormalizedPostEntity() + [
    '_links' => [
      'type' => [
        'href' => $this->baseUrl . '/rest/type/contact_message/camelids',
      ],
    ],
  ];
}

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