You are here

public function ScheduledTransitionsUtilityInterface::generateRevisionLog in Scheduled Transitions 2.x

Generates a revision log for a ready to save revision.

Parameters

\Drupal\scheduled_transitions\Entity\ScheduledTransitionInterface $scheduledTransition: The scheduled transition for the associated revision.

\Drupal\Core\Entity\RevisionLogInterface $newRevision: The entity a transition is created for.

Return value

string A revision log with replaced tokens.

Throws

\Drupal\scheduled_transitions\Exception\ScheduledTransitionMissingEntity Thrown if latest revision of a entity could not be determined.

1 method overrides ScheduledTransitionsUtilityInterface::generateRevisionLog()
ScheduledTransitionsUtility::generateRevisionLog in src/ScheduledTransitionsUtility.php
Generates a revision log for a ready to save revision.

File

src/ScheduledTransitionsUtilityInterface.php, line 70

Class

ScheduledTransitionsUtilityInterface
Utilities for Scheduled Transitions module.

Namespace

Drupal\scheduled_transitions

Code

public function generateRevisionLog(ScheduledTransitionInterface $scheduledTransition, RevisionLogInterface $newRevision) : string;