You are here

public function FieldItemListInterface::defaultAccess in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::defaultAccess()
  2. 9 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\Field

Code

public function defaultAccess($operation = 'view', AccountInterface $account = NULL);