function FieldItemListInterface::defaultAccess
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::defaultAccess()
- 8.9.x core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::defaultAccess()
- 11.x core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::defaultAccess()
Contains the default access logic of this field.
See \Drupal\Core\Entity\EntityAccessControlHandlerInterface::fieldAccess() for the parameter documentation.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
1 method overrides FieldItemListInterface::defaultAccess()
- FieldItemList::defaultAccess in core/
lib/ Drupal/ Core/ Field/ FieldItemList.php - Contains the default access logic of this field.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemListInterface.php, line 93
Class
- FieldItemListInterface
- Interface for fields, being lists of field items.
Namespace
Drupal\Core\FieldCode
public function defaultAccess($operation = 'view', ?AccountInterface $account = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.