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