public function SettingsForm::__construct in Responsive and off-canvas menu 4.1.x
Same name and namespace in other branches
- 8.3 src/Form/SettingsForm.php \Drupal\responsive_menu\Form\SettingsForm::__construct()
- 4.4.x src/Form/SettingsForm.php \Drupal\responsive_menu\Form\SettingsForm::__construct()
- 4.0.x src/Form/SettingsForm.php \Drupal\responsive_menu\Form\SettingsForm::__construct()
- 4.3.x src/Form/SettingsForm.php \Drupal\responsive_menu\Form\SettingsForm::__construct()
Constructs a \Drupal\system\ConfigFormBase object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
Overrides ConfigFormBase::__construct
File
- src/
Form/ SettingsForm.php, line 53
Class
- SettingsForm
- Form builder for the responsive_menu admin settings page.
Namespace
Drupal\responsive_menu\FormCode
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');
}