protected function DataParserPluginBase::fieldSelectors in Migrate Plus 8
Same name and namespace in other branches
- 8.5 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::fieldSelectors()
- 8.2 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::fieldSelectors()
- 8.3 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::fieldSelectors()
- 8.4 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::fieldSelectors()
Return the selectors used to populate each configured field.
Return value
string[] Array of selectors, keyed by field name.
1 call to DataParserPluginBase::fieldSelectors()
- Json::fetchNextRow in src/
Plugin/ migrate_plus/ data_parser/ Json.php - Retrieves the next row of data from the open source URL, populating currentItem.
File
- src/
DataParserPluginBase.php, line 213 - Contains \Drupal\migrate_plus\DataParserPluginBase.
Class
- DataParserPluginBase
- Defines a base data parser implementation.
Namespace
Drupal\migrate_plusCode
protected function fieldSelectors() {
$fields = [];
foreach ($this->configuration['fields'] as $field_info) {
if (isset($field_info['selector'])) {
$fields[$field_info['name']] = $field_info['selector'];
}
}
return $fields;
}