You are here

protected property DomStrReplaceTest::$exampleConfiguration in Migrate Plus 8.5

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/process/DomStrReplaceTest.php \Drupal\Tests\migrate_plus\Unit\process\DomStrReplaceTest::exampleConfiguration

Example configuration for the dom_str_replace process plugin.

Type: array

File

tests/src/Unit/process/DomStrReplaceTest.php, line 24

Class

DomStrReplaceTest
Tests the dom_str_replace process plugin.

Namespace

Drupal\Tests\migrate_plus\Unit\process

Code

protected $exampleConfiguration = [
  'mode' => 'attribute',
  'xpath' => '//a',
  'attribute_options' => [
    'name' => 'href',
  ],
  'search' => 'foo',
  'replace' => 'bar',
];