You are here

public function FieldPermissionsController::__construct in Field Permissions 8.2

Same name and namespace in other branches
  1. 8 src/Controller/FieldPermissionsController.php \Drupal\field_permissions\Controller\FieldPermissionsController::__construct()

Construct the field permission controller.

Parameters

\Drupal\field_permissions\FieldPermissionsServiceInterface $field_permissions_service: Field permissions services.

\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/Controller/FieldPermissionsController.php, line 52

Class

FieldPermissionsController
Define FieldPermissionsController.

Namespace

Drupal\field_permissions\Controller

Code

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