function NodeResourceTestBase::getNormalizedPostEntity

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

Overrides EntityResourceTestBase::getNormalizedPostEntity

File

core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php, line 211

Class

NodeResourceTestBase

Namespace

Drupal\Tests\node\Functional\Rest

Code

protected function getNormalizedPostEntity() {
    return [
        'type' => [
            [
                'target_id' => 'camelids',
            ],
        ],
        'title' => [
            [
                'value' => 'Drama llama',
            ],
        ],
    ];
}

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