You are here

public function DataParserPluginBase::getDataFetcherPlugin in Migrate Plus 8

Same name and namespace in other branches
  1. 8.5 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::getDataFetcherPlugin()
  2. 8.2 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::getDataFetcherPlugin()
  3. 8.3 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::getDataFetcherPlugin()
  4. 8.4 src/DataParserPluginBase.php \Drupal\migrate_plus\DataParserPluginBase::getDataFetcherPlugin()

Returns the initialized data fetcher plugin.

Return value

\Drupal\migrate_plus\DataFetcherPluginInterface The data fetcher plugin.

File

src/DataParserPluginBase.php, line 88
Contains \Drupal\migrate_plus\DataParserPluginBase.

Class

DataParserPluginBase
Defines a base data parser implementation.

Namespace

Drupal\migrate_plus

Code

public function getDataFetcherPlugin() {
  if (!isset($this->dataFetcherPlugin)) {
    $this->dataFetcherPlugin = \Drupal::service('plugin.manager.migrate_plus.data_fetcher')
      ->createInstance($this->configuration['data_fetcher_plugin'], $this->configuration);
  }
  return $this->dataFetcherPlugin;
}