function BaseFieldOverrideResourceTestBase::getExpectedNormalizedEntity
Same name in other branches
- 9 core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideResourceTestBase.php \Drupal\FunctionalTests\Rest\BaseFieldOverrideResourceTestBase::getExpectedNormalizedEntity()
- 8.9.x core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideResourceTestBase.php \Drupal\FunctionalTests\Rest\BaseFieldOverrideResourceTestBase::getExpectedNormalizedEntity()
- 11.x core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideResourceTestBase.php \Drupal\FunctionalTests\Rest\BaseFieldOverrideResourceTestBase::getExpectedNormalizedEntity()
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
File
-
core/
tests/ Drupal/ FunctionalTests/ Rest/ BaseFieldOverrideResourceTestBase.php, line 59
Class
Namespace
Drupal\FunctionalTests\RestCode
protected function getExpectedNormalizedEntity() {
return [
'bundle' => 'camelids',
'default_value' => [],
'default_value_callback' => '',
'dependencies' => [
'config' => [
'node.type.camelids',
],
],
'description' => '',
'entity_type' => 'node',
'field_name' => 'promote',
'field_type' => 'boolean',
'id' => 'node.camelids.promote',
'label' => 'Promote to front page',
'langcode' => 'en',
'required' => FALSE,
'settings' => [
'on_label' => 'On',
'off_label' => 'Off',
],
'status' => TRUE,
'translatable' => TRUE,
'uuid' => $this->entity
->uuid(),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.