You are here

protected static property MediaResourceTestBase::$patchProtectedFieldNames in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php \Drupal\Tests\media\Functional\Rest\MediaResourceTestBase::patchProtectedFieldNames
  2. 9 core/modules/media/tests/src/Functional/Rest/MediaResourceTestBase.php \Drupal\Tests\media\Functional\Rest\MediaResourceTestBase::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/media/tests/src/Functional/Rest/MediaResourceTestBase.php, line 37

Class

MediaResourceTestBase

Namespace

Drupal\Tests\media\Functional\Rest

Code

protected static $patchProtectedFieldNames = [
  'changed' => NULL,
];