function ConfigTestResourceTestBase::getExpectedNormalizedEntity

Same name in other branches
  1. 8.9.x core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestResourceTestBase.php \Drupal\Tests\config_test\Functional\Rest\ConfigTestResourceTestBase::getExpectedNormalizedEntity()
  2. 10 core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestResourceTestBase.php \Drupal\Tests\config_test\Functional\Rest\ConfigTestResourceTestBase::getExpectedNormalizedEntity()
  3. 11.x core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestResourceTestBase.php \Drupal\Tests\config_test\Functional\Rest\ConfigTestResourceTestBase::getExpectedNormalizedEntity()

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/config/tests/config_test/tests/src/Functional/Rest/ConfigTestResourceTestBase.php, line 48

Class

ConfigTestResourceTestBase

Namespace

Drupal\Tests\config_test\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
    $normalization = [
        'uuid' => $this->entity
            ->uuid(),
        'id' => 'llama',
        'weight' => 0,
        'langcode' => 'en',
        'status' => TRUE,
        'dependencies' => [],
        'label' => 'Llama',
        'style' => NULL,
        'size' => NULL,
        'size_value' => NULL,
        'protected_property' => NULL,
    ];
    return $normalization;
}

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