public function TermMerger::__construct in Term Merge 8
TermMerger constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.
\Drupal\term_reference_change\ReferenceMigrator $migrator: The reference migration service.
\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $dispatcher: The event dispatcher.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
File
- src/
TermMerger.php, line 55
Class
- TermMerger
- Implements TermMergerInterface to provide a term merger service.
Namespace
Drupal\term_mergeCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, ReferenceMigrator $migrator, ContainerAwareEventDispatcher $dispatcher) {
$this->entityTypeManager = $entityTypeManager;
$this->termStorage = $this->entityTypeManager
->getStorage('taxonomy_term');
$this->migrator = $migrator;
$this->dispatcher = $dispatcher;
}