public function FieldAccessInterface::handle in Commerce Cart API 8
Handle field access.
Parameters
string $operation: The operation to be performed. See \Drupal\Core\Entity\EntityAccessControlHandlerInterface::fieldAccess() for possible values.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
\Drupal\Core\Session\AccountInterface $account: The user account to check.
\Drupal\Core\Field\FieldItemListInterface $items: (optional) The entity field object for which to check access, or NULL if access is checked for the field definition, without any specific value available. Defaults to NULL.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
1 method overrides FieldAccessInterface::handle()
- FieldAccess::handle in src/
FieldAccess.php - Handle field access.
File
- src/
FieldAccessInterface.php, line 30
Class
Namespace
Drupal\commerce_cart_apiCode
public function handle($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL);