CommentHalJsonTestBase::$patchProtectedFieldNames

Same name in other branches
  1. 8.9.x core/modules/comment/tests/src/Functional/Hal/CommentHalJsonTestBase.php \Drupal\Tests\comment\Functional\Hal\CommentHalJsonTestBase::patchProtectedFieldNames

The HAL+JSON format causes different PATCH-protected fields. For some reason, the 'pid' and 'homepage' fields are NOT PATCH-protected, even though they are for non-HAL+JSON serializations.

@todo fix in https://www.drupal.org/node/2824271

Type: patchProtectedFieldNames

Overrides CommentResourceTestBase::$patchProtectedFieldNames

File

core/modules/hal/tests/src/Functional/comment/CommentHalJsonTestBase.php, line 38

Class

CommentHalJsonTestBase

Namespace

Drupal\Tests\hal\Functional\comment

Code

protected static $patchProtectedFieldNames = [
    'status' => "The 'administer comments' permission is required.",
    'created' => "The 'administer comments' permission is required.",
    'changed' => NULL,
    'thread' => NULL,
    'entity_type' => NULL,
    'field_name' => NULL,
    'uid' => "The 'administer comments' permission is required.",
    'entity_id' => NULL,
];

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