function FieldStorageConfigResourceTestBase::getExpectedNormalizedEntity

Same name in other branches
  1. 9 core/modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php \Drupal\Tests\field\Functional\Rest\FieldStorageConfigResourceTestBase::getExpectedNormalizedEntity()
  2. 8.9.x core/modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php \Drupal\Tests\field\Functional\Rest\FieldStorageConfigResourceTestBase::getExpectedNormalizedEntity()
  3. 11.x core/modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php \Drupal\Tests\field\Functional\Rest\FieldStorageConfigResourceTestBase::getExpectedNormalizedEntity()

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php, line 50

Class

FieldStorageConfigResourceTestBase

Namespace

Drupal\Tests\field\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
    return [
        'cardinality' => 1,
        'custom_storage' => FALSE,
        'dependencies' => [
            'module' => [
                'node',
            ],
        ],
        'entity_type' => 'node',
        'field_name' => 'true_llama',
        'id' => 'node.true_llama',
        'indexes' => [],
        'langcode' => 'en',
        'locked' => FALSE,
        'module' => 'core',
        'persist_with_no_fields' => FALSE,
        'settings' => [],
        'status' => TRUE,
        'translatable' => TRUE,
        'type' => 'boolean',
        'uuid' => $this->entity
            ->uuid(),
    ];
}

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