You are here

protected function DataParserPluginBase::fieldSelectors in Migrate Plus 8.3

Same name and namespace in other branches
  1. 8.5 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::fieldSelectors()
  2. 8 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::fieldSelectors()
  3. 8.2 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::fieldSelectors()
  4. 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.

5 calls 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.
SimpleXml::fetchNextRow in src/Plugin/migrate_plus/data_parser/SimpleXml.php
Retrieves the next row of data from the open source URL, populating currentItem.
Soap::fetchNextRow in src/Plugin/migrate_plus/data_parser/Soap.php
Retrieves the next row of data from the open source URL, populating currentItem.
Xml::fetchNextRow in src/Plugin/migrate_plus/data_parser/Xml.php
Retrieves the next row of data from the open source URL, populating currentItem.
Xml::__construct in src/Plugin/migrate_plus/data_parser/Xml.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

src/DataParserPluginBase.php, line 210

Class

DataParserPluginBase
Defines a base data parser implementation.

Namespace

Drupal\migrate_plus

Code

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;
}