function BlockContentResourceTestBase::getNormalizedPostEntity

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

Overrides EntityResourceTestBase::getNormalizedPostEntity

1 call to BlockContentResourceTestBase::getNormalizedPostEntity()
BlockContentHalJsonAnonTest::getNormalizedPostEntity in core/modules/hal/tests/src/Functional/block_content/BlockContentHalJsonAnonTest.php
Returns the normalized POST entity.
1 method overrides BlockContentResourceTestBase::getNormalizedPostEntity()
BlockContentHalJsonAnonTest::getNormalizedPostEntity in core/modules/hal/tests/src/Functional/block_content/BlockContentHalJsonAnonTest.php
Returns the normalized POST entity.

File

core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php, line 161

Class

BlockContentResourceTestBase
ResourceTestBase for BlockContent entity.

Namespace

Drupal\Tests\block_content\Functional\Rest

Code

protected function getNormalizedPostEntity() {
    return [
        'type' => [
            [
                'target_id' => 'basic',
            ],
        ],
        'info' => [
            [
                'value' => 'Dramallama',
            ],
        ],
    ];
}

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