public function LingotekConfigSet::getWorkflowId in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.6 lib/Drupal/lingotek/LingotekConfigSet.php \LingotekConfigSet::getWorkflowId()
Overrides LingotekTranslatableEntity::getWorkflowId
File
- lib/
Drupal/ lingotek/ LingotekConfigSet.php, line 1240 - Defines LingotekConfigSet.
Class
- LingotekConfigSet
- A class wrapper for Lingotek-specific behavior on ConfigSets.
Code
public function getWorkflowId() {
if ($this->workflow_id !== NULL && $this->workflow_id !== FALSE) {
$workflow_id = $this->workflow_id;
}
else {
$profiles = variable_get('lingotek_profiles');
$config_profile = $profiles[LingotekSync::PROFILE_CONFIG];
$workflow_id = array_key_exists('workflow_id', $config_profile) ? $config_profile['workflow_id'] : variable_get('lingotek_translate_config_workflow_id', '');
}
return $workflow_id;
}