function ChangedFieldItemList::defaultAccess
Same name in other branches
- 9 core/lib/Drupal/Core/Field/ChangedFieldItemList.php \Drupal\Core\Field\ChangedFieldItemList::defaultAccess()
- 10 core/lib/Drupal/Core/Field/ChangedFieldItemList.php \Drupal\Core\Field\ChangedFieldItemList::defaultAccess()
- 11.x core/lib/Drupal/Core/Field/ChangedFieldItemList.php \Drupal\Core\Field\ChangedFieldItemList::defaultAccess()
Overrides FieldItemList::defaultAccess
File
-
core/
lib/ Drupal/ Core/ Field/ ChangedFieldItemList.php, line 16
Class
- ChangedFieldItemList
- Defines a 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.