Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Wim Leers on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.6.x
Introduced in version:
8.6.0
Issue links:
Description:
Impact for API clients/consumers
Improved DX:
- Before
-
{"message":"Access denied on updating field 'sticky'."}
- After
-
{"message":"Access denied on updating field 'sticky'. The 'administer nodes' permission is required."}
Impact for modules providing entity types that have REST test coverage
Improved test coverage, for tests classes which subclass \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase
:
- Before
-
protected static $patchProtectedFieldNames = [ 'revision_timestamp', 'revision_uid', 'created', 'changed', 'promote', 'sticky', 'path', ];
- After
-
protected static $patchProtectedFieldNames = [ 'revision_timestamp' => NULL, 'revision_uid' => NULL, 'created' => "The 'administer nodes' permission is required.", 'changed' => NULL, 'promote' => "The 'administer nodes' permission is required.", 'sticky' => "The 'administer nodes' permission is required.", 'path' => "The following permissions are required: 'create url aliases' OR 'administer url aliases'.", ];
Impacts:
Module developers
Themers