Constructs a new EntityCloneExtrasPermissions instance.

Parameters

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

\Drupal\Core\StringTranslation\TranslationManager $string_translation: The string translation manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler.

File

modules/entity_clone_extras/src/EntityCloneExtrasPermissions.php, line 47

Class

EntityCloneExtrasPermissions
Provides dynamic permissions of the entity_clone module.

Namespace

Drupal\entity_clone_extras

Code

public function __construct(EntityTypeManagerInterface $entity_manager, TranslationManager $string_translation, ModuleHandlerInterface $module_handler) {
    $this->entityTypeManager = $entity_manager;
    $this->translationManager = $string_translation;
    $this->moduleHandler = $module_handler;
}