You are here

public function ScheduledTransitionsNewRevisionEvent::__construct in Scheduled Transitions 8

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

Constructs a new ScheduledTransitionsNewRevisionEvent.

Parameters

\Drupal\scheduled_transitions\Entity\ScheduledTransitionInterface $scheduledTransition: Scheduled transition entity.

File

src/Event/ScheduledTransitionsNewRevisionEvent.php, line 36

Class

ScheduledTransitionsNewRevisionEvent
Used to determine the new revision for a transition.

Namespace

Drupal\scheduled_transitions\Event

Code

public function __construct(ScheduledTransitionInterface $scheduledTransition) {
  $this->scheduledTransition = $scheduledTransition;
}