You are here

public function OverviewTerms::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/Form/OverviewTerms.php \Drupal\taxonomy\Form\OverviewTerms::__construct()

Constructs an OverviewTerms object.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

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

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

\Drupal\Core\Pager\PagerManagerInterface $pager_manager: The pager manager.

File

core/modules/taxonomy/src/Form/OverviewTerms.php, line 88

Class

OverviewTerms
Provides terms overview form for a taxonomy vocabulary.

Namespace

Drupal\taxonomy\Form

Code

public function __construct(ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, EntityRepositoryInterface $entity_repository, PagerManagerInterface $pager_manager) {
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
  $this->storageController = $entity_type_manager
    ->getStorage('taxonomy_term');
  $this->termListBuilder = $entity_type_manager
    ->getListBuilder('taxonomy_term');
  $this->renderer = $renderer;
  $this->entityRepository = $entity_repository;
  $this->pagerManager = $pager_manager;
}