You are here

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

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

Constructs a new imageStyleguide.

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\File\FileSystemInterface $file_system: The file system service.

Overrides PluginBase::__construct

File

src/Plugin/Styleguide/ImageStyleguide.php, line 60

Class

ImageStyleguide
Image styles Styleguide items implementation.

Namespace

Drupal\styleguide\Plugin\Styleguide

Code

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