public function LingotekProfile::getWorkflowForTarget in Lingotek Translation 3.6.x
Same name and namespace in other branches
- 8 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
- 8.2 src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
- 4.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
- 3.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
- 3.1.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
- 3.2.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
- 3.3.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
- 3.4.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
- 3.5.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
- 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
- 3.8.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::getWorkflowForTarget()
Gets the workflow to be used for a given language.
Parameters
string $langcode: The language code.
Return value
string The workflow identifier, used to request translations. If 'default', the default site workflow should be used.
Overrides LingotekProfileInterface::getWorkflowForTarget
File
- src/
Entity/ LingotekProfile.php, line 822
Class
- LingotekProfile
- Defines the LingotekProfile entity.
Namespace
Drupal\lingotek\EntityCode
public function getWorkflowForTarget($langcode) {
$workflow = $this
->getWorkflow();
if ($this
->hasCustomSettingsForTarget($langcode) && isset($this->language_overrides[$langcode]['custom']['workflow'])) {
$workflow = $this->language_overrides[$langcode]['custom']['workflow'];
}
if ($this
->hasDisabledTarget($langcode)) {
$workflow = NULL;
}
return $workflow;
}