You are here

protected function DomStrReplace::getReplace in Migrate Plus 8.4

Same name and namespace in other branches
  1. 8.5 src/Plugin/migrate/process/DomStrReplace.php \Drupal\migrate_plus\Plugin\migrate\process\DomStrReplace::getReplace()

Retrieves the right replace string based on configuration.

Return value

string The value to use for replacement.

1 call to DomStrReplace::getReplace()
DomStrReplace::transform in src/Plugin/migrate/process/DomStrReplace.php
Performs the associated process.

File

src/Plugin/migrate/process/DomStrReplace.php, line 159

Class

DomStrReplace
String replacements on a source dom.

Namespace

Drupal\migrate_plus\Plugin\migrate\process

Code

protected function getReplace() {
  switch ($this->configuration['mode']) {
    case 'attribute':
      return $this->configuration['replace'];
  }
}