public function StyleguideForm::__construct in Style Guide 8
Same name and namespace in other branches
- 2.x src/Form/StyleguideForm.php \Drupal\styleguide\Form\StyleguideForm::__construct()
Constructs a new StyleguideForm object.
Parameters
\Drupal\styleguide\GeneratorInterface $styleguide_generator: The styleguide generator.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- src/
Form/ StyleguideForm.php, line 38
Class
- StyleguideForm
- Defines a form builder to display form controls in style guide.
Namespace
Drupal\styleguide\FormCode
public function __construct(GeneratorInterface $styleguide_generator, ModuleHandlerInterface $module_handler) {
$this->generator = $styleguide_generator;
$this->moduleHandler = $module_handler;
}