function BlockResourceTestBase::getExpectedNormalizedEntity

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

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php, line 81

Class

BlockResourceTestBase

Namespace

Drupal\Tests\block\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
    $normalization = [
        'uuid' => $this->entity
            ->uuid(),
        'id' => 'llama',
        'weight' => 0,
        'langcode' => 'en',
        'status' => TRUE,
        'dependencies' => [
            'theme' => [
                'stark',
            ],
        ],
        'theme' => 'stark',
        'region' => 'header',
        'provider' => NULL,
        'plugin' => 'llama_block',
        'settings' => [
            'id' => 'broken',
            'label' => '',
            'provider' => 'core',
            'label_display' => 'visible',
        ],
        'visibility' => [],
    ];
    return $normalization;
}

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