You are here

public function LingotekProfile::setWorkflowForTarget in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWorkflowForTarget()
  2. 3.0.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWorkflowForTarget()
  3. 3.1.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWorkflowForTarget()
  4. 3.2.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWorkflowForTarget()
  5. 3.3.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWorkflowForTarget()
  6. 3.4.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWorkflowForTarget()
  7. 3.5.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWorkflowForTarget()
  8. 3.6.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWorkflowForTarget()
  9. 3.7.x src/Entity/LingotekProfile.php \Drupal\lingotek\Entity\LingotekProfile::setWorkflowForTarget()
  10. 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 818

Class

LingotekProfile
Defines the LingotekProfile entity.

Namespace

Drupal\lingotek\Entity

Code

public function setWorkflowForTarget($langcode, $value) {
  $this->language_overrides[$langcode]['custom']['workflow'] = $value;
  return $this;
}