public function UiPatternsSourceManager::__construct in UI Patterns 8
Constructor for UiPatternsSourceManager objects.
Overrides DefaultPluginManager::__construct
File
- src/
UiPatternsSourceManager.php, line 17
Class
- UiPatternsSourceManager
- Provides the UI Patterns Source plugin manager.
Namespace
Drupal\ui_patternsCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/UiPatterns/Source', $namespaces, $module_handler, 'Drupal\\ui_patterns\\Plugin\\PatternSourceInterface', 'Drupal\\ui_patterns\\Annotation\\UiPatternsSource');
$this
->alterInfo('ui_patterns_ui_patterns_source_info');
$this
->setCacheBackend($cache_backend, 'ui_patterns_ui_patterns_source_plugins');
}