function CommentResourceTestBase::getNormalizedPatchEntity

Same name in other branches
  1. 9 core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::getNormalizedPatchEntity()
  2. 8.9.x core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::getNormalizedPatchEntity()
  3. 11.x core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase::getNormalizedPatchEntity()

Overrides EntityResourceTestBase::getNormalizedPatchEntity

File

core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php, line 272

Class

CommentResourceTestBase

Namespace

Drupal\Tests\comment\Functional\Rest

Code

protected function getNormalizedPatchEntity() {
    return array_diff_key($this->getNormalizedPostEntity(), [
        'entity_type' => TRUE,
        'entity_id' => TRUE,
        'field_name' => TRUE,
    ]);
}

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