function RenderExampleDemoForm::__construct

Same name and namespace in other branches
  1. 3.x modules/render_example/src/Form/RenderExampleDemoForm.php \Drupal\render_example\Form\RenderExampleDemoForm::__construct()
  2. 8.x-1.x 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.

\Drupal\Core\Config\TypedConfigManagerInterface|null $typedConfigManager: The typed config manager.

Overrides ConfigFormBase::__construct

File

modules/render_example/src/Form/RenderExampleDemoForm.php, line 36

Class

RenderExampleDemoForm
Provides the form for toggling module features on and off.

Namespace

Drupal\render_example\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typed_config_manager, ModuleHandlerInterface $module_handler) {
  parent::__construct($config_factory, $typed_config_manager);
  $this->moduleHandler = $module_handler;
}