function OverviewTerms::__construct

Same name and namespace in other branches
  1. 11.x core/modules/taxonomy/src/Form/OverviewTerms.php \Drupal\taxonomy\Form\OverviewTerms::__construct()
  2. 10 core/modules/taxonomy/src/Form/OverviewTerms.php \Drupal\taxonomy\Form\OverviewTerms::__construct()
  3. 9 core/modules/taxonomy/src/Form/OverviewTerms.php \Drupal\taxonomy\Form\OverviewTerms::__construct()
  4. 8.9.x core/modules/taxonomy/src/Form/OverviewTerms.php \Drupal\taxonomy\Form\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.