function FieldConfigResourceTestBase::getExpectedNormalizedEntity
Returns the expected normalization of the entity.
Return value
array
Overrides EntityResourceTestBase::getExpectedNormalizedEntity
File
- 
              core/
modules/ field/ tests/ src/ Functional/ Rest/ FieldConfigResourceTestBase.php, line 63  
Class
Namespace
Drupal\Tests\field\Functional\RestCode
protected function getExpectedNormalizedEntity() {
  return [
    'bundle' => 'camelids',
    'default_value' => [],
    'default_value_callback' => '',
    'dependencies' => [
      'config' => [
        'field.storage.node.field_llama',
        'node.type.camelids',
      ],
      'module' => [
        'text',
      ],
    ],
    'description' => '',
    'entity_type' => 'node',
    'field_name' => 'field_llama',
    'field_type' => 'text',
    'id' => 'node.camelids.field_llama',
    'label' => 'field_llama',
    'langcode' => 'en',
    'required' => FALSE,
    'settings' => [],
    '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.