} /**
* Asserts structure of $patchProtectedFieldNames.
*/
protected function assertPatchProtectedFieldNamesStructure() { $is_null_or_string =
function D
$value) { return is_null($value) ||
is_string($value);
};
$this->
assertTrue( Inspector::
assertAllStrings(array_keys(static::
$patchProtectedFieldNames)),
'In Drupal 8.6, the structure of $patchProtectedFieldNames changed. It used to be an array with field names as values. Now those values are the keys, and their values should be either NULL or a string: a string containing the reason for why the field cannot be PATCHed, or NULL otherwise.'
);
$this->
assertTrue( Inspector::
assertAll($is_null_or_string,
static::
$patchProtectedFieldNames),
'In Drupal 8.6, the structure of $patchProtectedFieldNames changed. It used to be an array with field names as values. Now those values are the keys, and their values should be either NULL or a string: a string containing the reason for why the field cannot be PATCHed, or NULL otherwise.'
);
} /**
* Gets an entity resource's GET/PATCH/DELETE URL.
*
* @return \Drupal\Core\Url
* The URL to GET/PATCH/DELETE.
*/