function ContentLanguageSettingsResourceTestBase::getExpectedNormalizedEntity

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

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/language/tests/src/Functional/Rest/ContentLanguageSettingsResourceTestBase.php, line 59

Class

ContentLanguageSettingsResourceTestBase

Namespace

Drupal\Tests\language\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
    return [
        'default_langcode' => 'site_default',
        'dependencies' => [
            'config' => [
                'node.type.camelids',
            ],
        ],
        'id' => 'node.camelids',
        'langcode' => 'en',
        'language_alterable' => FALSE,
        'status' => TRUE,
        'target_bundle' => 'camelids',
        'target_entity_type_id' => 'node',
        'uuid' => $this->entity
            ->uuid(),
    ];
}

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