You are here

public function ScheduledTransitionsRunnerInterface::runTransition in Scheduled Transitions 2.x

Same name and namespace in other branches
  1. 8 src/ScheduledTransitionsRunnerInterface.php \Drupal\scheduled_transitions\ScheduledTransitionsRunnerInterface::runTransition()

Executes a transition.

Ignores transition time as it is already checked by job runner.

Pass a transition that should be run. This method is responsible for loading latest and the new revision, then delegating saving new revision, and any intermediate revisions if applicable. The transition may also be deleted depending on settings.

Parameters

\Drupal\scheduled_transitions\Entity\ScheduledTransitionInterface $scheduledTransition: A scheduled transition.

Throws

\Drupal\scheduled_transitions\Exception\ScheduledTransitionMissingEntity Thrown if any entity or entity revision is missing for a transition. Transition is never automatically deleted if exception is thrown.

1 method overrides ScheduledTransitionsRunnerInterface::runTransition()
ScheduledTransitionsRunner::runTransition in src/ScheduledTransitionsRunner.php
Executes a transition.

File

src/ScheduledTransitionsRunnerInterface.php, line 31

Class

ScheduledTransitionsRunnerInterface
Interface for transition executor.

Namespace

Drupal\scheduled_transitions

Code

public function runTransition(ScheduledTransitionInterface $scheduledTransition) : void;