You are here

protected property DomMigrationLookupTest::$exampleConfiguration in Migrate Plus 8.5

Example configuration for the dom_migration_lookup process plugin.

Type: array

File

tests/src/Unit/process/DomMigrationLookupTest.php, line 27

Class

DomMigrationLookupTest
Tests the dom_migration_lookup process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

protected $exampleConfiguration = [
  'plugin' => 'dom_migration_lookup',
  'mode' => 'attribute',
  'xpath' => '//a',
  'attribute_options' => [
    'name' => 'href',
  ],
  'search' => '@/user/(\\d+)@',
  'replace' => '/user/[mapped-id]',
  'migrations' => [
    'users' => [],
    'people' => [
      'replace' => '/people/[mapped-id]',
    ],
  ],
];