function EntityComment::__construct
Same name in other branches
- 8.9.x core/modules/comment/src/Plugin/migrate/destination/EntityComment.php \Drupal\comment\Plugin\migrate\destination\EntityComment::__construct()
- 10 core/modules/comment/src/Plugin/migrate/destination/EntityComment.php \Drupal\comment\Plugin\migrate\destination\EntityComment::__construct()
- 11.x core/modules/comment/src/Plugin/migrate/destination/EntityComment.php \Drupal\comment\Plugin\migrate\destination\EntityComment::__construct()
Builds a 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.
\Drupal\migrate\Plugin\MigrationInterface $migration: The migration.
\Drupal\Core\Entity\EntityStorageInterface $storage: The storage for this entity type.
array $bundles: The list of bundles this entity type has.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type plugin manager service.
\Drupal\Core\State\StateInterface $state: The state storage object.
\Drupal\Core\Session\AccountSwitcherInterface|null $account_switcher: The account switcher service.
Overrides EntityContentBase::__construct
File
-
core/
modules/ comment/ src/ Plugin/ migrate/ destination/ EntityComment.php, line 60
Class
- EntityComment
- Plugin annotation @MigrateDestination( id = "entity:comment" )
Namespace
Drupal\comment\Plugin\migrate\destinationCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles, EntityFieldManagerInterface $entity_field_manager, FieldTypePluginManagerInterface $field_type_manager, StateInterface $state, AccountSwitcherInterface $account_switcher = NULL) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $storage, $bundles, $entity_field_manager, $field_type_manager, $account_switcher);
$this->state = $state;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.