Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Migrate Process Array

83 sites No security coverage
View on drupal.org

This module provides tools to filter and manipulate array values during content migration. It includes plugins like `array_intersect` and `array_diff` to help manage arrays based on matching or excluding specific items.

When migrating content, sometimes you have an array of values you need to filter against known items. This module provides utilities for interacting with arrays during migration, including custom filtering.

See the README for further details.

Requirements

  • Drupal 8 or 9

Usage

  field_of_array_values:
    plugin: array_intersect
    source: some_array_field
    match:
      - values
      - to
      - match
  field_of_array_values:
    plugin: array_diff
    source: some_array_field
    exclude:
      - values
      - to
      - match

For a given field value:

[
  'a',
  'bunch',
  'of',
  'values',
];

The array_intersect plugin would return:

[
  'values',
];

Whereas the array_diff plugin would return:

[
  'a',
  'bunch',
  'of',
];

This Module is Part of a Migration Framework

This module is part of a migration framework created for a client project in which we migrated information from Digital Measures to a Drupal site. However, the specific problems each module solves are common to migration processes in general. With the exception of Digitalmeasures Migrate, these modules are fairly generic and can be used for a variety of other migrations.

For more information on how this framework was used for a Digital Measure Migration, read:

Here are the modules in the migration framework:

  • Digitalmeasures Migrate
    Provides a method to access Digital Measures API through Drupal.
  • Migrate Process XML
    Reads XML and allows you to extract particular key sections using XPath.
  • Migrate Process S3
    Allows you to download objects from an S3 bucket as files to your Drupal site.
  • Migrate Process URL
    Allows you to manipulate URL values that are provided within the data.
  • Migrate Process Regex
    Provides a way to use Regular Expressions in a Drupal migration.
  • Migrate Process Vardump
    Often used for debugging, this module takes any data given to it and dumps it to the terminal output and then passes it on.
  • Migrate Process Skip
    Provides a few different mechanisms to define what is “empty” and should be skipped.
  • Migrate Process Trim
    This module provides a quick and simple means to remove leading or trailing characters (such as spaces) in a Drupal migration.
  • Migrate Process Array
    Provides utilities for interacting with arrays during migration.

Activity

Total releases
1
First release
Jul 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
2.0.2 Stable Jul 3, 2025