You are here

protected static property FileResourceTestBase::$patchProtectedFieldNames in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::patchProtectedFieldNames
  2. 9 core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::patchProtectedFieldNames

The fields that are protected against modification during PATCH requests.

Keys are field names, values are expected access denied reasons.

Type: string[]

Overrides EntityResourceTestBase::$patchProtectedFieldNames

File

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

Class

FileResourceTestBase

Namespace

Drupal\Tests\file\Functional\Rest

Code

protected static $patchProtectedFieldNames = [
  'uri' => NULL,
  'filemime' => NULL,
  'filesize' => NULL,
  'status' => NULL,
  'changed' => NULL,
];