You are here

public function SettingsForm::__construct in Responsive and off-canvas menu 8.3

Same name and namespace in other branches
  1. 4.4.x src/Form/SettingsForm.php \Drupal\responsive_menu\Form\SettingsForm::__construct()
  2. 4.0.x src/Form/SettingsForm.php \Drupal\responsive_menu\Form\SettingsForm::__construct()
  3. 4.1.x src/Form/SettingsForm.php \Drupal\responsive_menu\Form\SettingsForm::__construct()
  4. 4.3.x src/Form/SettingsForm.php \Drupal\responsive_menu\Form\SettingsForm::__construct()

Constructs a SettingsForm object.

Parameters

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

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

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 58

Class

SettingsForm
Form builder for the responsive_menu admin settings page.

Namespace

Drupal\responsive_menu\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($config_factory);
  $this->configFactory = $config_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->config = $config_factory
    ->get('responsive_menu.settings');
}