Skip to content

Commit

Permalink
OEL-1167: Move var doc to multilingual helper service.
Browse files Browse the repository at this point in the history
  • Loading branch information
drishu committed Mar 21, 2022
1 parent 34998d5 commit 023a770
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ function oe_whitelabel_multilingual_preprocess_links__oe_multilingual_content_la
}

// Add the current language to the list.
/** @var \Drupal\oe_multilingual\MultilingualHelper $multilingual_helper */
$multilingual_helper = \Drupal::service('oe_multilingual.helper');
$entity = $multilingual_helper->getEntityFromCurrentRoute();
/** @var \Drupal\Core\Entity\EntityInterface $translation */
$translation = $multilingual_helper->getCurrentLanguageEntityTranslation($entity);
// If we don't have a language id defined yet, the current translation wasn't
// saved, so we don't add it to the list.
Expand Down

0 comments on commit 023a770

Please sign in to comment.