You are here

public function MenuLinkTreeManipulator::__construct in Menu block current language 8

MenuLinkTreeManipulator constructor.

Parameters

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

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

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\locale\StringStorageInterface $locale_storage: The locale storage.

File

src/MenuLinkTreeManipulator.php, line 73

Class

MenuLinkTreeManipulator
A menu link tree manipulator.

Namespace

Drupal\menu_block_current_language

Code

public function __construct(LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, EventDispatcherInterface $event_dispatcher, StringStorageInterface $locale_storage) {
  $this->languageManager = $language_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->configFactory = $config_factory;
  $this->eventDispatcher = $event_dispatcher;
  $this->localeStorage = $locale_storage;
}