PathBasedBreadcrumbBuilder::__construct

public PathBasedBreadcrumbBuilder::__construct(RequestContext $context, AccessManagerInterface $access_manager, RequestMatcherInterface $router, InboundPathProcessorInterface $path_processor, ConfigFactoryInterface $config_factory, TitleResolverInterface $title_resolver, AccountInterface $current_user, CurrentPathStack $current_path)

Constructs the PathBasedBreadcrumbBuilder.

Parameters

\Drupal\Core\Routing\RequestContext $context: The router request context.

\Drupal\Core\Access\AccessManagerInterface $access_manager: The menu link access service.

\Symfony\Component\Routing\Matcher\RequestMatcherInterface $router: The dynamic router service.

\Drupal\Core\PathProcessor\InboundPathProcessorInterface $path_processor: The inbound path processor.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.

\Drupal\Core\Controller\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.

File

core/modules/system/src/PathBasedBreadcrumbBuilder.php, line 102

Class

PathBasedBreadcrumbBuilder
Class to define the menu_link breadcrumb builder.

Namespace

Drupal\system

Code

public function __construct(RequestContext $context, AccessManagerInterface $access_manager, RequestMatcherInterface $router, InboundPathProcessorInterface $path_processor, ConfigFactoryInterface $config_factory, TitleResolverInterface $title_resolver, AccountInterface $current_user, CurrentPathStack $current_path) {
  $this->context = $context;
  $this->accessManager = $access_manager;
  $this->router = $router;
  $this->pathProcessor = $path_processor;
  $this->config = $config_factory->get('system.site');
  $this->titleResolver = $title_resolver;
  $this->currentUser = $current_user;
  $this->currentPath = $current_path;
}
doc_Drupal
2016-10-29 09:33:18
Comments
Leave a Comment

Please login to continue.