You are here

public function HierarchyManager::__construct in Entity Reference Hierarchy 8

Constructs a HierarchyManager object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: Provides an interface for entity type managers.

\Drupal\Core\StringTranslation\TranslationInterface $translation: Interface for the translation.manager translation service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Defines the interface for a configuration object factory.

\Drupal\entity_hierarchy\HierarchyOutlineStorageInterface $hierarchy_outline_storage: The entity hierarchy storage object

File

src/HierarchyManager.php, line 77
Contains \Drupal\entity_hierarchy\HierarchyManager.

Class

HierarchyManager
Defines a hierarchy manager.

Namespace

Drupal\entity_hierarchy

Code

public function __construct(EntityTypeManagerInterface $entity_manager, TranslationInterface $translation, ConfigFactoryInterface $config_factory, HierarchyOutlineStorageInterface $hierarchy_outline_storage) {
  $this->entityManager = $entity_manager;
  $this->stringTranslation = $translation;
  $this->configFactory = $config_factory;
  $this->hierarchyOutlineStorage = $hierarchy_outline_storage;
}