function MessageResourceTestBase::getNormalizedPostEntity
Same name in other branches
- 9 core/modules/contact/tests/src/Functional/Rest/MessageResourceTestBase.php \Drupal\Tests\contact\Functional\Rest\MessageResourceTestBase::getNormalizedPostEntity()
- 8.9.x core/modules/contact/tests/src/Functional/Rest/MessageResourceTestBase.php \Drupal\Tests\contact\Functional\Rest\MessageResourceTestBase::getNormalizedPostEntity()
- 11.x 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
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.