public function LibraryDeriver::__construct in UI Patterns 8
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: Messenger.
\Drupal\Core\File\FileSystemInterface $file_system: File system service.
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.
Overrides AbstractYamlPatternsDeriver::__construct
File
- modules/
ui_patterns_library/ src/ Plugin/ Deriver/ LibraryDeriver.php, line 98
Class
- LibraryDeriver
- Class LibraryDeriver.
Namespace
Drupal\ui_patterns_library\Plugin\DeriverCode
public function __construct($base_plugin_id, TypedDataManager $typed_data_manager, MessengerInterface $messenger, FileSystemInterface $file_system, $root, array $extensions, ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler) {
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);
}