function FieldItemList::defaultAccess
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::defaultAccess()
- 8.9.x core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::defaultAccess()
- 11.x core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::defaultAccess()
Overrides FieldItemListInterface::defaultAccess
3 methods override FieldItemList::defaultAccess()
- ChangedFieldItemList::defaultAccess in core/
lib/ Drupal/ Core/ Field/ ChangedFieldItemList.php - LayoutSectionItemList::defaultAccess in core/
modules/ layout_builder/ src/ Field/ LayoutSectionItemList.php - Overrides \Drupal\Core\Field\FieldItemListInterface::defaultAccess().
- PathFieldItemList::defaultAccess in core/
modules/ path/ src/ Plugin/ Field/ FieldType/ PathFieldItemList.php - Contains the default access logic of this field.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemList.php, line 160
Class
- FieldItemList
- Represents an entity field; that is, a list of field item objects.
Namespace
Drupal\Core\FieldCode
public function defaultAccess($operation = 'view', ?AccountInterface $account = NULL) {
// Grant access per default.
return AccessResult::allowed();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.