Commit 0031240a authored by Luis's avatar Luis Committed by Damien McKenna
Browse files

Issue #3304779 by luigisa, DamienMcKenna:...

Issue #3304779 by luigisa, DamienMcKenna: MetatagManager::processedTokenCache() does not respect the entity language.
parent 85d56df8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -11,6 +11,8 @@ Metatag 8.x-1.x-dev, 2022-xx-xx
  module to make tokens more flexible.
#3302685 by DamienMcKenna: Tiny changes from tests refactoring.
#3303196 by DamienMcKenna: Add extra isSOMETHING() methods to MetaNameBase.
#3304779 by luigisa, DamienMcKenna: MetatagManager::processedTokenCache() does
  not respect the entity language.


Metatag 8.x-1.21, 2022-07-16
+2 −1
Original line number Diff line number Diff line
@@ -667,7 +667,8 @@ class MetatagManager implements MetatagManagerInterface {

    $entity_identifier = '_none';
    if ($entity) {
      $entity_identifier = $entity->getEntityTypeId() . ':' . ($entity->uuid() ?? $entity->id());
      $entity_identifier = $entity->getEntityTypeId() . ':' . ($entity->uuid() ?? $entity->id()) . ':' . $entity->language()
          ->getId();
    }

    // Use the entity's language code, if one is defined.