You are here

public function FieldPermissionsService::__construct in Field Permissions 8

Same name and namespace in other branches
  1. 8.2 src/FieldPermissionsService.php \Drupal\field_permissions\FieldPermissionsService::__construct()

Construct the field permission service.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\field_permissions\Plugin\FieldPermissionType\Manager $permission_type_manager: The permission type plugin manager.

File

src/FieldPermissionsService.php, line 44

Class

FieldPermissionsService
The field permission service.

Namespace

Drupal\field_permissions

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, Manager $permission_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->permissionTypeManager = $permission_type_manager;
}