You are here

public function HierarchyBasedBreadcrumbBuilder::__construct in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 modules/entity_hierarchy_breadcrumb/src/HierarchyBasedBreadcrumbBuilder.php \Drupal\entity_hierarchy_breadcrumb\HierarchyBasedBreadcrumbBuilder::__construct()

HierarchyBasedBreadcrumbBuilder constructor.

Parameters

\Drupal\entity_hierarchy\Storage\NestedSetStorageFactory $storage_factory: The nested set storage factory service.

\Drupal\entity_hierarchy\Storage\NestedSetNodeKeyFactory $node_key_factory: The node key factory service.

\Drupal\entity_hierarchy\Storage\EntityTreeNodeMapperInterface $mapper: The entity tree node mapper service.

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager service.

\Drupal\Core\Routing\AdminContext $admin_context: The admin context service.

File

modules/entity_hierarchy_breadcrumb/src/HierarchyBasedBreadcrumbBuilder.php, line 72

Class

HierarchyBasedBreadcrumbBuilder
Entity hierarchy based breadcrumb builder.

Namespace

Drupal\entity_hierarchy_breadcrumb

Code

public function __construct(NestedSetStorageFactory $storage_factory, NestedSetNodeKeyFactory $node_key_factory, EntityTreeNodeMapperInterface $mapper, EntityFieldManagerInterface $entity_field_manager, AdminContext $admin_context) {
  $this->storageFactory = $storage_factory;
  $this->nodeKeyFactory = $node_key_factory;
  $this->mapper = $mapper;
  $this->entityFieldManager = $entity_field_manager;
  $this->adminContext = $admin_context;
}