Commit b749368c authored by Matt Glaman's avatar Matt Glaman Committed by Damien McKenna
Browse files

Issue #3176513 by mglaman:...

Issue #3176513 by mglaman: \Drupal\metatag\MetatagManager::defaultTagsFromEntity should not return null.
parent 7226aeb8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
  (and bundle).
#3171660 by richgerdes, DamienMcKenna: Migration Plugin Alter breaks with
  commerce_migrate_commerce.
#3176513 by mglaman: \Drupal\metatag\MetatagManager::defaultTagsFromEntity
  should not return null.


Metatag 8.x-1.14, 2020-08-11
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ class MetatagManager implements MetatagManagerInterface {
    /** @var \Drupal\metatag\Entity\MetatagDefaults $metatags */
    $metatags = $this->metatagDefaults->load('global');
    if (!$metatags || !$metatags->status()) {
      return NULL;
      return [];
    }
    // Add/overwrite with tags set on the entity type.
    /** @var \Drupal\metatag\Entity\MetatagDefaults $entity_type_tags */