You are here

public function WorkbenchEmailDeriver::__construct in Workbench Email 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Derivative/WorkbenchEmailDeriver.php \Drupal\workbench_email\Plugin\Derivative\WorkbenchEmailDeriver::__construct()

Creates an EntityMatcherDeriver object.

Parameters

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

\Drupal\workbench_moderation\ModerationInformationInterface|\Drupal\content_moderation\ModerationInformationInterface $moderation_info: Moderation info service.

File

src/Plugin/Derivative/WorkbenchEmailDeriver.php, line 41

Class

WorkbenchEmailDeriver
Deriver to define a queue for each entity type.

Namespace

Drupal\workbench_email\Plugin\Derivative

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, $moderation_info) {
  $this->entityManager = $entity_type_manager;
  $this->moderationInfo = $moderation_info;
}