public function DisqusComment::__construct in Disqus 8
Same name in this branch
- 8 src/Plugin/migrate/source/DisqusComment.php \Drupal\disqus\Plugin\migrate\source\DisqusComment::__construct()
- 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.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
Overrides SourcePluginBase::__construct
File
- src/
Plugin/ migrate/ source/ DisqusComment.php, line 71
Class
- DisqusComment
- Disqus comment source using disqus-api.
Namespace
Drupal\disqus\Plugin\migrate\sourceCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, LoggerInterface $logger, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration);
$this->logger = $logger;
$this->config = $config_factory
->get('disqus.settings');
$this->entityTypeManager = $entity_type_manager;
}