You are here

public function FormModePermission::__construct in Form Mode Control 8

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

Constructs a new FormModePermission instance.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

File

src/FormModePermission.php, line 51
Contains \Drupal\form_mode_control\FormModesPermission.

Class

FormModePermission
Provides dynamic permissions for the form_mode_control module.

Namespace

Drupal\form_mode_control

Code

public function __construct(EntityManagerInterface $entity_manager) {
  $this->entityManager = $entity_manager;
}