function BlockContentTypeResourceTestBase::getExpectedNormalizedEntity

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

Overrides EntityResourceTestBase::getExpectedNormalizedEntity

File

core/modules/block_content/tests/src/Functional/Rest/BlockContentTypeResourceTestBase.php, line 51

Class

BlockContentTypeResourceTestBase

Namespace

Drupal\Tests\block_content\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
    return [
        'dependencies' => [],
        'description' => 'Provides a competitive alternative to the "basic" type',
        'id' => 'pascal',
        'label' => 'Pascal',
        'langcode' => 'en',
        'revision' => 0,
        'status' => TRUE,
        'uuid' => $this->entity
            ->uuid(),
    ];
}

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