public function WorkbenchTransitionEventSubscriber::__construct in Workbench Email 8
Same name and namespace in other branches
- 2.x src/EventSubscriber/WorkbenchTransitionEventSubscriber.php \Drupal\workbench_email\EventSubscriber\WorkbenchTransitionEventSubscriber::__construct()
Constructor.
File
- src/
EventSubscriber/ WorkbenchTransitionEventSubscriber.php, line 43
Class
- WorkbenchTransitionEventSubscriber
- Subscribes to transition changes to send notification emails.
Namespace
Drupal\workbench_email\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user, QueueFactory $queue_factory) {
$this->entityTypeManager = $entity_type_manager;
$this->currentUser = $current_user;
$this->queueFactory = $queue_factory;
}