protected function LingotekContentModerationSettingsForm::getWorkflowTransitions in Lingotek Translation 8.2
Same name and namespace in other branches
- 4.0.x src/Moderation/LingotekContentModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm::getWorkflowTransitions()
- 3.0.x src/Moderation/LingotekContentModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm::getWorkflowTransitions()
- 3.1.x src/Moderation/LingotekContentModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm::getWorkflowTransitions()
- 3.2.x src/Moderation/LingotekContentModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm::getWorkflowTransitions()
- 3.3.x src/Moderation/LingotekContentModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm::getWorkflowTransitions()
- 3.4.x src/Moderation/LingotekContentModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm::getWorkflowTransitions()
- 3.5.x src/Moderation/LingotekContentModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm::getWorkflowTransitions()
- 3.6.x src/Moderation/LingotekContentModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm::getWorkflowTransitions()
- 3.7.x src/Moderation/LingotekContentModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm::getWorkflowTransitions()
- 3.8.x src/Moderation/LingotekContentModerationSettingsForm.php \Drupal\lingotek\Moderation\LingotekContentModerationSettingsForm::getWorkflowTransitions()
Get workflow transitions helper method.
Needed because of differences in 8.3.x and 8.4.x.
Parameters
\Drupal\workflows\WorkflowInterface $workflow: The workflow.
Return value
\Drupal\workflows\TransitionInterface[] An array of transition objects.
1 call to LingotekContentModerationSettingsForm::getWorkflowTransitions()
- LingotekContentModerationSettingsForm::getModerationDownloadTransitions in src/
Moderation/ LingotekContentModerationSettingsForm.php - Gets the default download transition.
File
- src/
Moderation/ LingotekContentModerationSettingsForm.php, line 173
Class
- LingotekContentModerationSettingsForm
- Moderation settings form for the Lingotek content_moderation integration.
Namespace
Drupal\lingotek\ModerationCode
protected function getWorkflowTransitions(WorkflowInterface $workflow) {
if (floatval(\Drupal::VERSION) >= 8.4) {
return $workflow
->getTypePlugin()
->getTransitions();
}
else {
return $workflow
->getTransitions();
}
}