public function FieldPermissionsServiceInterface::getFieldAccess in Field Permissions 8
Same name and namespace in other branches
- 8.2 src/FieldPermissionsServiceInterface.php \Drupal\field_permissions\FieldPermissionsServiceInterface::getFieldAccess()
Get access for field by operations and account permisisons.
Parameters
string $operation: String operation on field.
\Drupal\Core\Field\FieldItemListInterface $items: The entity field object on which to check access.
\Drupal\Core\Session\AccountInterface $account: Account to get permissions.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: Fields to get permissions.
1 method overrides FieldPermissionsServiceInterface::getFieldAccess()
- FieldPermissionsService::getFieldAccess in src/
FieldPermissionsService.php - Get access for field by operations and account permisisons.
File
- src/
FieldPermissionsServiceInterface.php, line 84
Class
- FieldPermissionsServiceInterface
- Implement FieldPermission Interface.
Namespace
Drupal\field_permissionsCode
public function getFieldAccess($operation, FieldItemListInterface $items, AccountInterface $account, FieldDefinitionInterface $field_definition);