protected function LingotekContentModerationHandler::getWorkflowTransition in Lingotek Translation 3.8.x
Same name and namespace in other branches
- 8.2 src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
- 4.0.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
- 3.0.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
- 3.1.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
- 3.2.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
- 3.3.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
- 3.4.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
- 3.5.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
- 3.6.x src/Moderation/LingotekContentModerationHandler.php \Drupal\lingotek\Moderation\LingotekContentModerationHandler::getWorkflowTransition()
- 3.7.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 147
Class
- LingotekContentModerationHandler
- Content moderation handler managing the Lingotek integration.
Namespace
Drupal\lingotek\ModerationCode
protected function getWorkflowTransition(WorkflowInterface $workflow, $transition_id) {
return $workflow
->getTypePlugin()
->getTransition($transition_id);
}