You are here

public function MenuMultilingualLinkTreeModifier::__construct in Menu Multilingual 8

MenuMultilingualLinkTreeModifier constructor.

Parameters

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

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

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

File

src/Menu/MenuMultilingualLinkTreeModifier.php, line 84

Class

MenuMultilingualLinkTreeModifier
Class MenuMultilingualLinkTreeModifier.

Namespace

Drupal\menu_multilingual\Menu

Code

public function __construct(LanguageManagerInterface $languageManager, EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $configFactory) {
  $this->filterLabels = FALSE;
  $this->filterContent = FALSE;
  $this->languageManager = $languageManager;
  $this->entityTypeManager = $entityTypeManager;
  $this->configFactory = $configFactory;
  $this->storages = [
    'menu_link_content' => $entityTypeManager
      ->getStorage('menu_link_content'),
  ];
}