You are here

public function CommentStyleguide::__construct in Style Guide 8

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

Constructs a new CommentStyleguide.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

array $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.

Overrides PluginBase::__construct

File

src/Plugin/Styleguide/CommentStyleguide.php, line 49

Class

CommentStyleguide
Comment Styleguide items implementation.

Namespace

Drupal\styleguide\Plugin\Styleguide

Code

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