You are here

public function DisqusComment::__construct in Disqus 8

Same name in this branch
  1. 8 src/Plugin/migrate/source/DisqusComment.php \Drupal\disqus\Plugin\migrate\source\DisqusComment::__construct()
  2. 8 src/Plugin/migrate/destination/DisqusComment.php \Drupal\disqus\Plugin\migrate\destination\DisqusComment::__construct()

Constructs Disqus comments destination plugin.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implemetation definition.

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration.

\Psr\Log\LoggerInterface $logger: A logger instance.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

Overrides DestinationBase::__construct

File

src/Plugin/migrate/destination/DisqusComment.php, line 51

Class

DisqusComment
Disqus comment destination.

Namespace

Drupal\disqus\Plugin\migrate\destination

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, LoggerInterface $logger, ConfigFactoryInterface $config_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
  $this->logger = $logger;
  $this->config = $config_factory
    ->get('disqus.settings');
}