You are here

public function ScheduledTransitionsNewRevisionEvent::setNewRevision in Scheduled Transitions 2.x

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

Sets the new revision.

Parameters

\Drupal\Core\Entity\RevisionableInterface $newRevision: The new revision.

File

src/Event/ScheduledTransitionsNewRevisionEvent.php, line 66

Class

ScheduledTransitionsNewRevisionEvent
Used to determine the new revision for a transition.

Namespace

Drupal\scheduled_transitions\Event

Code

public function setNewRevision(RevisionableInterface $newRevision) : void {
  $this->newRevision = $newRevision;
}