function EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity

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

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

1 call to EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity()
LayoutBuilderEntityViewDisplayResourceTestBase::getExpectedNormalizedEntity in core/modules/layout_builder/tests/src/Functional/Rest/LayoutBuilderEntityViewDisplayResourceTestBase.php
Returns the expected normalization of the entity.
1 method overrides EntityViewDisplayResourceTestBase::getExpectedNormalizedEntity()
LayoutBuilderEntityViewDisplayResourceTestBase::getExpectedNormalizedEntity in core/modules/layout_builder/tests/src/Functional/Rest/LayoutBuilderEntityViewDisplayResourceTestBase.php
Returns the expected normalization of the entity.

File

core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php, line 64

Class

EntityViewDisplayResourceTestBase

Namespace

Drupal\FunctionalTests\Rest

Code

protected function getExpectedNormalizedEntity() {
    return [
        'bundle' => 'camelids',
        'content' => [
            'links' => [
                'region' => 'content',
                'weight' => 100,
                'settings' => [],
                'third_party_settings' => [],
            ],
        ],
        'dependencies' => [
            'config' => [
                'node.type.camelids',
            ],
            'module' => [
                'user',
            ],
        ],
        'hidden' => [],
        'id' => 'node.camelids.default',
        'langcode' => 'en',
        'mode' => 'default',
        'status' => TRUE,
        'targetEntityType' => 'node',
        'uuid' => $this->entity
            ->uuid(),
    ];
}

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