Commit 018cb409 authored by Nick Vanpraet's avatar Nick Vanpraet Committed by Damien McKenna
Browse files

Issue #3124039 by Grayle: Migration plugins alter does not check for presence of migration_tags.

parent 6e12e198
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
#3042590 by phenaproxima, SerShevchyk, chr.fritsch, Berdir, pixlkat, abramm,
  Cary_Dean, pguillard, gmangones, DamienMcKenna, josephdpurcell, waverate,
  joshi.rohit100, baikho, valthebald: Drupal 9 compatibility fixes.
#3124039 by Grayle: Migration plugins alter does not check for presence of
  migration_tags.


Metatag 8.x-1.12, 2020-03-30
+5 −4
Original line number Diff line number Diff line
@@ -851,10 +851,11 @@ function _metatag_is_migration_plugin_supported(array $definition) {
  // Only run add the migration plugins when doing a "Drupal 7" migration. This
  // will catch standard core migrations but allow skipping this log for custom
  // migrations that do not have this tag.
  if (!empty($definition['migration_tags'])) {
    if (!array_intersect(['Drupal 6', 'Drupal 7'], $definition['migration_tags'])) {
  if (empty($definition['migration_tags'])) {
    return FALSE;
  }
  if (!array_intersect(['Drupal 6', 'Drupal 7'], $definition['migration_tags'])) {
    return FALSE;
  }

  // This migration has destination plugins defined.