function FieldItemListInterface::defaultAccess

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

Code

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.