protected function DomStrReplace::getSearch in Migrate Plus 8.5
Same name and namespace in other branches
- 8.4 src/Plugin/migrate/process/DomStrReplace.php \Drupal\migrate_plus\Plugin\migrate\process\DomStrReplace::getSearch()
Retrieves the right search string based on configuration.
Return value
string The value to be searched.
2 calls to DomStrReplace::getSearch()
- DomMigrationLookup::transform in src/
Plugin/ migrate/ process/ DomMigrationLookup.php - Performs the associated process.
- DomStrReplace::transform in src/
Plugin/ migrate/ process/ DomStrReplace.php - Performs the associated process.
File
- src/
Plugin/ migrate/ process/ DomStrReplace.php, line 214
Class
- DomStrReplace
- String replacements on a source dom.
Namespace
Drupal\migrate_plus\Plugin\migrate\processCode
protected function getSearch() {
switch ($this->configuration['mode']) {
case 'attribute':
case 'element':
return $this->configuration['search'];
}
}