public function MergeTermsConfirm::__construct in Term Merge 8
Constructs a MergeTermsConfirm object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity manager service.
\Drupal\Core\TempStore\PrivateTempStoreFactory $tempStoreFactory: The private temporary storage factory.
\Drupal\term_merge\TermMergerInterface $termMerger: The term merger service.
File
- src/
Form/ MergeTermsConfirm.php, line 64
Class
- MergeTermsConfirm
- Term merge confirm form.
Namespace
Drupal\term_merge\FormCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, PrivateTempStoreFactory $tempStoreFactory, TermMergerInterface $termMerger) {
$this->entityTypeManager = $entityTypeManager;
$this->termStorage = $entityTypeManager
->getStorage('taxonomy_term');
$this->tempStoreFactory = $tempStoreFactory;
$this->termMerger = $termMerger;
}