public function RenderExampleDemoForm::__construct in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/render_example/src/Form/RenderExampleDemoForm.php \Drupal\render_example\Form\RenderExampleDemoForm::__construct()
Constructs a \Drupal\system\ConfigFormBase object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
Overrides ConfigFormBase::__construct
File
- render_example/
src/ Form/ RenderExampleDemoForm.php, line 35
Class
- RenderExampleDemoForm
- Provides the form for toggling module features on and off.
Namespace
Drupal\render_example\FormCode
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) {
parent::__construct($config_factory);
$this->moduleHandler = $module_handler;
}