public function ScheduledTransitionsNewRevision::__construct in Scheduled Transitions 2.x
Same name and namespace in other branches
- 8 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\EventSubscriberCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, LoggerInterface $logger) {
$this->entityTypeManager = $entityTypeManager;
$this->logger = $logger;
}