You are here

protected static property FileResourceTestBase::$patchProtectedFieldNames in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php \Drupal\Tests\file\Functional\Rest\FileResourceTestBase::patchProtectedFieldNames
  2. 10 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 32

Class

FileResourceTestBase

Namespace

Drupal\Tests\file\Functional\Rest

Code

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