function MessageResourceTestBase::getNormalizedPostEntity
Returns the normalized POST entity.
Return value
array
Overrides EntityResourceTestBase::getNormalizedPostEntity
File
- 
              core/
modules/ contact/ tests/ src/ Functional/ Rest/ MessageResourceTestBase.php, line 75  
Class
Namespace
Drupal\Tests\contact\Functional\RestCode
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.