public function WorkflowTransition::getLangcode in Workflow 8
Get the language code for which the Transition is valid.
@todo OK?? Shouldn't we use entity's language() method for langcode?
Return value
string $langcode
Overrides WorkflowTransitionInterface::getLangcode
1 call to WorkflowTransition::getLangcode()
- WorkflowScheduledTransition::save in src/
Entity/ WorkflowScheduledTransition.php - Saves a scheduled transition. If the transition is executed, save in history.
File
- src/
Entity/ WorkflowTransition.php, line 723
Class
- WorkflowTransition
- Implements an actual, executed, Transition.
Namespace
Drupal\workflow\EntityCode
public function getLangcode() {
return $this
->getTargetEntity()
->language()
->getId();
}