function OverviewTerms::__construct

Constructs an OverviewTerms object.

File

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

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, private readonly RendererInterface $renderer, private readonly EntityRepositoryInterface $entityRepository, private readonly PagerManagerInterface $pagerManager) {
  $this->setModuleHandler($module_handler);
  $this->setEntityTypeManager($entity_type_manager);
  $this->storageController = $entity_type_manager->getStorage('taxonomy_term');
  $this->termListBuilder = $entity_type_manager->getListBuilder('taxonomy_term');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.