Unverified Commit 5f504df9 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3155463 by longwave, quietone, jungle: Fix spelling error in...

Issue #3155463 by longwave, quietone, jungle: Fix spelling error in Drupal\filter\Plugin\migrate\process\FilterID::getSourceFilterType()
parent 1420393a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -560,7 +560,6 @@ elit
embed's
emebd
emptry
emtity
emtpy
encapsed
encoding's
@@ -972,7 +971,6 @@ linkback
linkgenerator
linkification
linksby
linktitle
lisu
litererally
livescript
+7 −3
Original line number Diff line number Diff line
@@ -13,6 +13,12 @@
use Drupal\migrate\Row;
use Symfony\Component\DependencyInjection\ContainerInterface;

// cspell:ignore abbrfilter adsense autofloat biblio cincopa codefilter
// cspell:ignore commonmark deepzoom emogrifier emptyparagraphkiller forena
// cspell:ignore gotwo htmlpurifier htmltidy intlinks intlinks lazyloader
// cspell:ignore linktitle multicolumn multilink mytube openlayers opengraph
// cspell:ignore sanitizable shortcode shortcode typogrify wordfilter xbbcode

/**
 * @MigrateProcessPlugin(
 *   id = "filter_id"
@@ -108,7 +114,6 @@ public function transform($value, MigrateExecutableInterface $migrate_executable
   * @see \Drupal\filter\Plugin\FilterInterface::getType()
   */
  protected static function getSourceFilterType($filter_id) {
    // cSpell:disable
    switch ($filter_id) {
      // Drupal 7 core filters.
      // - https://git.drupalcode.org/project/drupal/blob/7.69/modules/filter/filter.module#L1229
@@ -235,7 +240,7 @@ protected static function getSourceFilterType($filter_id) {
        return FilterInterface::TYPE_HTML_RESTRICTOR;

      // https://www.drupal.org/project/entity_embed
      case 'emtity_embed':
      case 'entity_embed':
        return FilterInterface::TYPE_TRANSFORM_IRREVERSIBLE;

      case 'filter_align':
@@ -539,7 +544,6 @@ protected static function getSourceFilterType($filter_id) {
      case 'xbbcode':
        return FilterInterface::TYPE_MARKUP_LANGUAGE;
    }
    // cSpell:enable

    return NULL;
  }