public function EasyBreadcrumbBuilder::__construct in Easy Breadcrumb 8
Same name and namespace in other branches
- 2.x src/EasyBreadcrumbBuilder.php \Drupal\easy_breadcrumb\EasyBreadcrumbBuilder::__construct()
Constructs the EasyBreadcrumbBuilder.
Parameters
\Drupal\Core\Routing\RequestContext $context: The router request context.
\Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager service.
\Symfony\Component\Routing\Matcher\RequestMatcherInterface $router: The dynamic router service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack service.
\Drupal\Core\PathProcessor\InboundPathProcessorInterface $path_processor: The inbound path processor.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\easy_breadcrumb\TitleResolverInterface $title_resolver: The title resolver service.
\Drupal\Core\Session\AccountInterface $current_user: The current user object.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path.
\Drupal\Core\Menu\MenuLinkManager $menu_link_manager: The menu link manager.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: The logger service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\Core\Extension\ModuleHandler $module_handler: The module handler.
File
- src/
EasyBreadcrumbBuilder.php, line 204
Class
- EasyBreadcrumbBuilder
- Primary implementation for the Easy Breadcrumb builder.
Namespace
Drupal\easy_breadcrumbCode
public function __construct(RequestContext $context, AccessManagerInterface $access_manager, RequestMatcherInterface $router, RequestStack $request_stack, InboundPathProcessorInterface $path_processor, ConfigFactoryInterface $config_factory, TitleResolverInterface $title_resolver, AccountInterface $current_user, CurrentPathStack $current_path, MenuLinkManager $menu_link_manager, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository, LoggerChannelFactoryInterface $logger, MessengerInterface $messenger, ModuleHandler $module_handler) {
$this->context = $context;
$this->accessManager = $access_manager;
$this->router = $router;
$this->requestStack = $request_stack;
$this->pathProcessor = $path_processor;
$this->siteConfig = $config_factory
->get('system.site');
$this->config = $config_factory
->get(EasyBreadcrumbConstants::MODULE_SETTINGS);
$this->titleResolver = $title_resolver;
$this->currentUser = $current_user;
$this->currentPath = $current_path;
$this->menuLinkManager = $menu_link_manager;
$this->languageManager = $language_manager;
$this->entityTypeManager = $entity_type_manager;
$this->entityRepository = $entity_repository;
$this->logger = $logger;
$this->messenger = $messenger;
$this->moduleHandler = $module_handler;
}