protected function DomStrReplace::getSubject in Migrate Plus 8.4
Same name and namespace in other branches
- 8.5 src/Plugin/migrate/process/DomStrReplace.php \Drupal\migrate_plus\Plugin\migrate\process\DomStrReplace::getSubject()
Retrieves the right subject string.
Parameters
\DOMElement $node: The current element from iteration.
Return value
string The string to use a subject on search.
1 call to DomStrReplace::getSubject()
- DomStrReplace::transform in src/
Plugin/ migrate/ process/ DomStrReplace.php - Performs the associated process.
File
- src/
Plugin/ migrate/ process/ DomStrReplace.php, line 133
Class
- DomStrReplace
- String replacements on a source dom.
Namespace
Drupal\migrate_plus\Plugin\migrate\processCode
protected function getSubject(\DOMElement $node) {
switch ($this->configuration['mode']) {
case 'attribute':
return $node
->getAttribute($this->configuration['attribute_options']['name']);
}
}