function ConfigurableLanguageResourceTestBase::getExpectedNormalizedEntity

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

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/language/tests/src/Functional/Rest/ConfigurableLanguageResourceTestBase.php, line 52

Class

ConfigurableLanguageResourceTestBase

Namespace

Drupal\Tests\language\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
    return [
        'dependencies' => [],
        'direction' => 'ltr',
        'id' => 'll',
        'label' => 'Llama Language',
        'langcode' => 'en',
        'locked' => FALSE,
        'status' => TRUE,
        'uuid' => $this->entity
            ->uuid(),
        'weight' => 0,
    ];
}

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