Migrate Process Extra

Component ID

2889351

Component name

Migrate Process Extra

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

180

Component created

Component changed

Component body

Provides a collection of Migrate process plugins that are not part of the core or Migrate Plus process plugins.

Source plugins are already covered by a variety of modules by core or contrib modules (e.g. Migrate Plus for XML, JSON, ... or Migrate source XLS, Migrate Spreadsheet, ...) while destination plugins are more intended to be really custom.

Extra process plugins

  • country_code - Gets the ISO ISO 3166-1 alpha-2 country code from a country name, with optional locale configuration, requires commerceguys/addressing and commerceguys/intl, used by the Address module.
  • format_phone (see #2889576) - Formats a phone number based on Google's libphonenumber.
  • format_integer (@todo see #2916471) - Formats an integer number by removing thousands separators, prefix and suffix.
  • format_decimal (@todo see #2916472) - Formats a decimal number by removing thousands separators, prefix and suffix.
  • format_name (@todo) - Formats a name string, like first and last name and provide option for nobiliary particle.
  • validate_email - Validates email address via the core email.validator service, with optional MX / A lookup.
  • validate_link - Checks if a link does not return a 404 header.
  • sanitize_text (@todo see #2893221) - Facade on various text sanitization methods, like Word special char treatment, XSS filtering, HTML tidy, ...
  • synonym (@todo see #2889388) - Merges several values for entity reference.
  • paragraphs (@todo) - Imports a single or multiple collection of fields to Paragraphs.
  • wrapper_extract - Extracts a value from a wrapper string defined via configuration: [ ], ( ), ...
  • wrapper_remove - Removes a value from a wrapper, and the wrapper itself.

Example use case for synonym: several values are describing the same reality, and we want to define them as the same taxonomy term, this can be also useful to cover typos.

Example use case for wrapper_extract and wrapper_remove: a title that provides the name and acronym (Drupal.org (DO)) that must be extracted in two fields.

More to come, an issue will be open so we can discuss other -less but still used- process plugins.

Installation

Migrate Process Extra must be installed via Composer, in order to get the required libraries.

composer require drupal/migrate_process_extra

Update

composer update drupal/migrate_process_extra --with-dependencies