You are here

public function MergeTerms::__construct in Term Merge 8

Constructs a MergeTerms object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity manager service.

\Drupal\Core\TempStore\PrivateTempStoreFactory $tempStoreFactory: The private temporary storage factory service.

File

src/Form/MergeTerms.php, line 53

Class

MergeTerms
Term merge form.

Namespace

Drupal\term_merge\Form

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, PrivateTempStoreFactory $tempStoreFactory) {
  $this->entityTypeManager = $entityTypeManager;
  $this->termStorage = $entityTypeManager
    ->getStorage('taxonomy_term');
  $this->tempStoreFactory = $tempStoreFactory;
}