You are here

public function CatalogBreadcrumbBuilder::__construct in Commerce Demo 8

Constructs a new CatalogBreadcrumbBuilder object.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Controller\TitleResolverInterface $title_resolver: The title resolver.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity storage.

File

src/CatalogBreadcrumbBuilder.php, line 54

Class

CatalogBreadcrumbBuilder
Builds a catalog breadcrumb.

Namespace

Drupal\commerce_demo

Code

public function __construct(RequestStack $request_stack, TitleResolverInterface $title_resolver, EntityTypeManagerInterface $entity_type_manager) {
  $this->requestStack = $request_stack;
  $this->titleResolver = $title_resolver;
  $this->entityTypeManager = $entity_type_manager;
}