You are here

public function LayoutStyleguide::__construct in Style Guide 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Styleguide/LayoutStyleguide.php \Drupal\styleguide\Plugin\Styleguide\LayoutStyleguide::__construct()

Constructs a new LayoutStyleguide object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\styleguide\GeneratorInterface $styleguide_generator: The styleguide generator service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\Core\Layout\LayoutPluginManagerInterface|null $layout_plugin_manager: The layout plugin manager.

Overrides PluginBase::__construct

File

src/Plugin/Styleguide/LayoutStyleguide.php, line 58

Class

LayoutStyleguide
Renders all found layouts from core Layout Discovery module.

Namespace

Drupal\styleguide\Plugin\Styleguide

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, GeneratorInterface $styleguide_generator, ModuleHandlerInterface $module_handler, LayoutPluginManagerInterface $layout_plugin_manager = NULL) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->generator = $styleguide_generator;
  $this->moduleHandler = $module_handler;
  $this->layoutPluginManager = $layout_plugin_manager;
}