function FileResourceTestBase::getNormalizedPatchEntity

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

Overrides EntityResourceTestBase::getNormalizedPatchEntity

File

core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php, line 203

Class

FileResourceTestBase

Namespace

Drupal\Tests\file\Functional\Rest

Code

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

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