You are here

public function MenuManipulatorSettingsForm::__construct in Menu Manipulator 8

Same name and namespace in other branches
  1. 8.2 src/Form/MenuManipulatorSettingsForm.php \Drupal\menu_manipulator\Form\MenuManipulatorSettingsForm::__construct()
  2. 3.0.x src/Form/MenuManipulatorSettingsForm.php \Drupal\menu_manipulator\Form\MenuManipulatorSettingsForm::__construct()
  3. 2.0.x src/Form/MenuManipulatorSettingsForm.php \Drupal\menu_manipulator\Form\MenuManipulatorSettingsForm::__construct()

Constructs a MenuManipulatorSettingsForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Config\Entity\ConfigEntityStorage $menu_storage: The menu storage service.

\Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The language manager handler.

Overrides ConfigFormBase::__construct

File

src/Form/MenuManipulatorSettingsForm.php, line 53

Class

MenuManipulatorSettingsForm
Configure custom settings for Menu Manipulators.

Namespace

Drupal\menu_manipulator\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, ConfigEntityStorage $menu_storage, ConfigurableLanguageManagerInterface $language_manager) {
  parent::__construct($config_factory);
  $this->configFactory = $config_factory;
  $this->menus = $menu_storage
    ->loadMultiple();
  $this->languageManager = $language_manager;
}