- last update
3 months ago 27 pass
In a multilingual site, For a node translated, the field state_machine formatter displays the allowed transitions always from the value of the field state in the node from default language.
In the StateTransitionForm which load the entity, load the correct translation of this entity.
$this->entity = $this->entityTypeManager->getStorage($entity_type)->load($entity_id);
will become
$entity = $this->entityTypeManager->getStorage($entity_type)->load($entity_id);
$this->entity = $this->entityRepository->getTranslationFromContext($entity);
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.