You are here

public function MenuBasedBreadcrumbBuilder::__construct in Menu Breadcrumb 8

Same name and namespace in other branches
  1. 2.0.x src/MenuBasedBreadcrumbBuilder.php \Drupal\menu_breadcrumb\MenuBasedBreadcrumbBuilder::__construct()

File

src/MenuBasedBreadcrumbBuilder.php, line 143

Class

MenuBasedBreadcrumbBuilder

Namespace

Drupal\menu_breadcrumb

Code

public function __construct(ConfigFactoryInterface $config_factory, MenuActiveTrailInterface $menu_active_trail, MenuLinkManagerInterface $menu_link_manager, AdminContext $admin_context, TitleResolverInterface $title_resolver, RequestStack $request_stack, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, CacheBackendInterface $cache_menu, LockBackendInterface $lock) {
  $this->configFactory = $config_factory;
  $this->menuActiveTrail = $menu_active_trail;
  $this->menuLinkManager = $menu_link_manager;
  $this->adminContext = $admin_context;
  $this->titleResolver = $title_resolver;
  $this->currentRequest = $request_stack
    ->getCurrentRequest();
  $this->languageManager = $language_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->cacheMenu = $cache_menu;
  $this->lock = $lock;
  $this->config = $this->configFactory
    ->get('menu_breadcrumb.settings');
}