function EntityViewModeResourceTestBase::getExpectedNormalizedEntity

Same name in other branches
  1. 9 core/tests/Drupal/FunctionalTests/Rest/EntityViewModeResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityViewModeResourceTestBase::getExpectedNormalizedEntity()
  2. 8.9.x core/tests/Drupal/FunctionalTests/Rest/EntityViewModeResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityViewModeResourceTestBase::getExpectedNormalizedEntity()
  3. 11.x core/tests/Drupal/FunctionalTests/Rest/EntityViewModeResourceTestBase.php \Drupal\FunctionalTests\Rest\EntityViewModeResourceTestBase::getExpectedNormalizedEntity()

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/tests/Drupal/FunctionalTests/Rest/EntityViewModeResourceTestBase.php, line 53

Class

EntityViewModeResourceTestBase

Namespace

Drupal\FunctionalTests\Rest

Code

protected function getExpectedNormalizedEntity() {
    return [
        'cache' => TRUE,
        'dependencies' => [
            'module' => [
                'user',
            ],
        ],
        'description' => '',
        'id' => 'user.test',
        'label' => 'Test',
        'langcode' => 'en',
        'status' => TRUE,
        'targetEntityType' => 'user',
        'uuid' => $this->entity
            ->uuid(),
    ];
}

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