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

public function __construct(ModuleHandlerInterface $module_handler, EntityManagerInterface $entity_manager) {
  $this->moduleHandler = $module_handler;
  $this->storageController = $entity_manager->getStorage('taxonomy_term');
}
doc_Drupal
2016-10-29 09:32:50
Comments
Leave a Comment

Please login to continue.