You are here

public function TaxonomyBreadcrumb::__construct in Taxonomy Breadcrumb 8

File

src/TaxonomyBreadcrumb.php, line 59

Class

TaxonomyBreadcrumb

Namespace

Drupal\taxonomy_breadcrumb

Code

public function __construct(ConfigFactoryInterface $config_factory, MenuLinkManagerInterface $menu_link_manager, EntityManagerInterface $entityManager, MenuActiveTrailInterface $menu_active_trail) {
  $this->config = $config_factory
    ->getEditable('taxonomy_breadcrumb.settings');
  $this->menuLinkManager = $menu_link_manager;
  $this->entityManager = $entityManager;
  $this->termStorage = $entityManager
    ->getStorage('taxonomy_term');
  $this->menuActiveTrail = $menu_active_trail;
}