OverviewTerms::__construct

public OverviewTerms::__construct(ModuleHandlerInterface $module_handler, EntityManagerInterface $entity_manager)

Constructs an OverviewTerms object.

Parameters

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

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.

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

1
2
3
4
public function __construct(ModuleHandlerInterface $module_handler, EntityManagerInterface $entity_manager) {
  $this->moduleHandler = $module_handler;
  $this->storageController = $entity_manager->getStorage('taxonomy_term');
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.