function ChangedFieldItemList::defaultAccess
Overrides FieldItemList::defaultAccess
File
- 
              core/
lib/ Drupal/ Core/ Field/ ChangedFieldItemList.php, line 16  
Class
- ChangedFieldItemList
 - Defines an item list class for changed fields.
 
Namespace
Drupal\Core\FieldCode
public function defaultAccess($operation = 'view', ?AccountInterface $account = NULL) {
  // It is not possible to edit the changed field.
  return AccessResult::allowedIf($operation !== 'edit');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.