You are here

public function Url::getDataParserPlugin in Migrate Plus 8.2

Same name and namespace in other branches
  1. 8.5 src/Plugin/migrate/source/Url.php \Drupal\migrate_plus\Plugin\migrate\source\Url::getDataParserPlugin()
  2. 8 src/Plugin/migrate/source/Url.php \Drupal\migrate_plus\Plugin\migrate\source\Url::getDataParserPlugin()
  3. 8.3 src/Plugin/migrate/source/Url.php \Drupal\migrate_plus\Plugin\migrate\source\Url::getDataParserPlugin()
  4. 8.4 src/Plugin/migrate/source/Url.php \Drupal\migrate_plus\Plugin\migrate\source\Url::getDataParserPlugin()

Returns the initialized data parser plugin.

Return value

\Drupal\migrate_plus\DataParserPluginInterface The data parser plugin.

1 call to Url::getDataParserPlugin()
Url::initializeIterator in src/Plugin/migrate/source/Url.php
Creates and returns a filtered Iterator over the documents.

File

src/Plugin/migrate/source/Url.php, line 70

Class

Url
Source plugin for retrieving data via URLs.

Namespace

Drupal\migrate_plus\Plugin\migrate\source

Code

public function getDataParserPlugin() {
  if (!isset($this->dataParserPlugin)) {
    $this->dataParserPlugin = \Drupal::service('plugin.manager.migrate_plus.data_parser')
      ->createInstance($this->configuration['data_parser_plugin'], $this->configuration);
  }
  return $this->dataParserPlugin;
}