You are here

protected function LingotekContentModerationHandler::getWorkflowTransition in Lingotek Translation 3.1.x

Same name and namespace in other branches
  1. 8.2 src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
  2. 4.0.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
  3. 3.0.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
  4. 3.2.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
  5. 3.3.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
  6. 3.4.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
  7. 3.5.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
  8. 3.6.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
  9. 3.7.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
  10. 3.8.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()

Get workflow transition helper method.

Parameters

\Drupal\workflows\WorkflowInterface $workflow: The workflow.

$transition_id: The transition id.

Return value

\Drupal\workflows\TransitionInterface A transition.

Deprecated

in lingotek:3.0.0 and is removed from lingotek:4.0.0. Use $workflow->getTypePlugin()->getTransition($transition_id) instead.

See also

\Drupal\workflows\WorkflowTypeInterface::getTransition()

File

src/Moderation/LingotekContentModerationHandler.php, line 139

Class

LingotekContentModerationHandler
Content moderation handler managing the Lingotek integration.

Namespace

Drupal\lingotek\Moderation

Code

protected function getWorkflowTransition(WorkflowInterface $workflow, $transition_id) {
  return $workflow
    ->getTypePlugin()
    ->getTransition($transition_id);
}