You are here

public function ScheduledTransitionsNewRevision::__construct in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/ScheduledTransitionsNewRevision.php \Drupal\scheduled_transitions\EventSubscriber\ScheduledTransitionsNewRevision::__construct()

Constructs a new ScheduledTransitionsNewRevision.

Parameters

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

\Psr\Log\LoggerInterface $logger: A logger instance.

File

src/EventSubscriber/ScheduledTransitionsNewRevision.php, line 42

Class

ScheduledTransitionsNewRevision
Determines which revision should be transitioned.

Namespace

Drupal\scheduled_transitions\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, LoggerInterface $logger) {
  $this->entityTypeManager = $entityTypeManager;
  $this->logger = $logger;
}