Problem/Motivation

Sites that use the Shortcode module on Drupal 7 should have configuration copied when they migrate to Drupal 8 or Drupal 9.

Proposed resolution

Map the plugin ID of the 'Shortcodes - html corrector' filter to match the D7 version.

Comments

n4r3n created an issue. See original summary.

n4r3n’s picture

Patch to map Shortcodes - html corrector filter.

denes.szabo’s picture

@n4r3n Thanks for your contribution!

Shouldn't we need to check the 'shortcode_text_corrector' existence in the $migration and add the new corrector id when it exists?

I mean:

if (!empty($migration['process']['filters']['process']['id']['map']['shortcode_text_corrector'])) {
   // Add 7.x-2.x to 2.0.x filter ID mapping.
   $migration['process']['filters']['process']['id']['map']['shortcode_text_corrector'] = 'shortcode_corrector';
}

wim leers’s picture

Status: Active » Reviewed & tested by the community
Related issues: +#3106304: Migrate: add mapping for editor module's editor_align and editor_caption filters

#3: No, that's not necessary. We're creating that entry in the array/mapping :)

You can find a bunch of examples in contrib of this, and even one in Drupal core: #3106304: Migrate: add mapping for editor module's editor_align and editor_caption filters.

  • Denes.Szabo committed 4ac20451 on 2.0.x authored by n4r3n
    Issue #3229599 by n4r3n: Drupal 7 → Drupal 8 migration path
    
denes.szabo’s picture

Thank you for your contribution, the 2.0.2 just released.

denes.szabo’s picture

Status: Reviewed & tested by the community » Fixed
denes.szabo’s picture

Status: Fixed » Closed (fixed)