You are here

public function ToolbarSettingsForm::__construct in Devel 8

Same name and namespace in other branches
  1. 8.3 src/Form/ToolbarSettingsForm.php \Drupal\devel\Form\ToolbarSettingsForm::__construct()
  2. 8.2 src/Form/ToolbarSettingsForm.php \Drupal\devel\Form\ToolbarSettingsForm::__construct()
  3. 4.x src/Form/ToolbarSettingsForm.php \Drupal\devel\Form\ToolbarSettingsForm::__construct()

ToolbarSettingsForm constructor.

Parameters

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

\Drupal\Core\Menu\MenuLinkTreeInterface $menu_link_tree: The menu link tree service.

Overrides ConfigFormBase::__construct

File

src/Form/ToolbarSettingsForm.php, line 32

Class

ToolbarSettingsForm
Configures devel toolbar settings.

Namespace

Drupal\devel\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, MenuLinkTreeInterface $menu_link_tree) {
  parent::__construct($config_factory);
  $this->menuLinkTree = $menu_link_tree;
}