You are here

public function StyleguideForm::__construct in Style Guide 2.x

Same name and namespace in other branches
  1. 8 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\Form

Code

public function __construct(GeneratorInterface $styleguide_generator, ModuleHandlerInterface $module_handler) {
  $this->generator = $styleguide_generator;
  $this->moduleHandler = $module_handler;
}