You are here

public function LibraryDeriver::__construct in Gin Layout Builder 8.2

Constructor.

Parameters

string $base_plugin_id: The base plugin ID.

\Drupal\Core\TypedData\TypedDataManager $typed_data_manager: Typed data manager service.

\Drupal\Core\Messenger\MessengerInterface $messenger:

\Drupal\Core\File\FileSystemInterface $file_system:

string $root: Application root directory.

array $extensions: File extensions.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler service.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: Theme handler service.

ConfigFactory $config_factory: Config factory service.

Overrides AbstractYamlPatternsDeriver::__construct

File

modules/wingsuit_ui_patterns/src/Plugin/Deriver/LibraryDeriver.php, line 99

Class

LibraryDeriver
Class LibraryDeriver.

Namespace

Drupal\wingsuit_ui_patterns\Plugin\Deriver

Code

public function __construct($base_plugin_id, TypedDataManager $typed_data_manager, MessengerInterface $messenger, FileSystemInterface $file_system, $root, array $extensions, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, ConfigFactory $config_factory) {
  parent::__construct($base_plugin_id, $typed_data_manager, $messenger, $file_system);
  $this->root = $root;
  $this->fileExtensions = $extensions;
  $this->moduleHandler = $module_handler;
  $this->themeHandler = $theme_handler;
  $this->extensionDiscovery = new ExtensionDiscovery($root);
  $this->config = $config_factory
    ->getEditable('wingsuit_companion.config');
}