NodeFieldAccessTest::$administrativeFields

Same name in other branches
  1. 8.9.x core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php \Drupal\Tests\node\Kernel\NodeFieldAccessTest::administrativeFields
  2. 10 core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php \Drupal\Tests\node\Kernel\NodeFieldAccessTest::administrativeFields
  3. 11.x core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php \Drupal\Tests\node\Kernel\NodeFieldAccessTest::administrativeFields

Fields that only users with administer nodes permissions can change.

Type: array

File

core/modules/node/tests/src/Kernel/NodeFieldAccessTest.php, line 29

Class

NodeFieldAccessTest
Tests node field level access.

Namespace

Drupal\Tests\node\Kernel

Code

protected $administrativeFields = [
    'status',
    'promote',
    'sticky',
    'created',
    'uid',
];

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