public function TaxonomyMenuHelper::__construct in Taxonomy menu 8.3
Constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.
\Drupal\Core\Menu\MenuLinkManagerInterface $manager: The menu link manager.
File
- src/
TaxonomyMenuHelper.php, line 38
Class
- TaxonomyMenuHelper
- Class TaxonomyMenu.
Namespace
Drupal\taxonomy_menuCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, MenuLinkManagerInterface $manager) {
$this->menuStorage = $entity_type_manager
->getStorage('taxonomy_menu');
$this->manager = $manager;
}