You are here

public function EntityComment::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Plugin/migrate/destination/EntityComment.php \Drupal\comment\Plugin\migrate\destination\EntityComment::__construct()

Builds an comment entity destination.

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 implementation definition.

MigrationInterface $migration: The migration.

EntityStorageInterface $storage: The storage for this entity type.

array $bundles: The list of bundles this entity type has.

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.

\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type plugin manager service.

\Drupal\Core\State\StateInterface $state: The state storage object.

\Drupal\Core\Entity\Query\QueryFactory $entity_query: The query object that can query the given entity type.

Overrides EntityContentBase::__construct

File

core/modules/comment/src/Plugin/migrate/destination/EntityComment.php, line 73
Contains \Drupal\comment\Plugin\migrate\destination\EntityComment.

Class

EntityComment
Plugin annotation @MigrateDestination( id = "entity:comment" )

Namespace

Drupal\comment\Plugin\migrate\destination

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles, EntityManagerInterface $entity_manager, FieldTypePluginManagerInterface $field_type_manager, StateInterface $state, QueryFactory $entity_query) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $storage, $bundles, $entity_manager, $field_type_manager);
  $this->state = $state;
  $this->entityQuery = $entity_query;
}