function MessageResourceTestBase::getNormalizedPostEntity

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

Overrides EntityResourceTestBase::getNormalizedPostEntity

File

core/modules/contact/tests/src/Functional/Rest/MessageResourceTestBase.php, line 75

Class

MessageResourceTestBase

Namespace

Drupal\Tests\contact\Functional\Rest

Code

protected function getNormalizedPostEntity() {
    return [
        'subject' => [
            [
                'value' => 'Drama llama',
            ],
        ],
        'contact_form' => [
            [
                'target_id' => 'camelids',
            ],
        ],
        'message' => [
            [
                'value' => 'http://www.urbandictionary.com/define.php?term=drama%20llama',
            ],
        ],
    ];
}

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