You are here

public function MergeTermsTarget::__construct in Term Merge 8

Constructs an OverviewTerms object.

Parameters

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

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

File

src/Form/MergeTermsTarget.php, line 53

Class

MergeTermsTarget
Term merge target terms 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;
}