public function FieldPermissionsService::fieldGetPermissionType in Field Permissions 8
Same name and namespace in other branches
- 8.2 src/FieldPermissionsService.php \Drupal\field_permissions\FieldPermissionsService::fieldGetPermissionType()
Get the permission type for a given field.
Parameters
\Drupal\field\FieldStorageConfigInterface $field: The field to return permissions for.
Overrides FieldPermissionsServiceInterface::fieldGetPermissionType
3 calls to FieldPermissionsService::fieldGetPermissionType()
- FieldPermissionsService::getAllPermissions in src/
FieldPermissionsService.php - Returns permissions for all fields that are using custom permissions.
- FieldPermissionsService::getFieldAccess in src/
FieldPermissionsService.php - Get access for field by operations and account permisisons.
- FieldPermissionsService::hasFieldViewAccessForEveryEntity in src/
FieldPermissionsService.php - Determines if the given account may view the field, regardless of entity.
File
- src/
FieldPermissionsService.php, line 138
Class
- FieldPermissionsService
- The field permission service.
Namespace
Drupal\field_permissionsCode
public function fieldGetPermissionType(FieldStorageConfigInterface $field) {
return $field
->getThirdPartySetting('field_permissions', 'permission_type', FieldPermissionTypeInterface::ACCESS_PUBLIC);
}