public function WidgetSelectorManager::__construct in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/WidgetSelectorManager.php \Drupal\entity_browser\WidgetSelectorManager::__construct()
Constructs a new WidgetManager.
Parameters
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides DefaultPluginManager::__construct
File
- src/
WidgetSelectorManager.php, line 25
Class
- WidgetSelectorManager
- Manages entity browser widget selector plugins.
Namespace
Drupal\entity_browserCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/EntityBrowser/WidgetSelector', $namespaces, $module_handler, 'Drupal\\entity_browser\\WidgetSelectorInterface', 'Drupal\\entity_browser\\Annotation\\EntityBrowserWidgetSelector');
$this
->alterInfo('entity_browser_widget_selector_info');
$this
->setCacheBackend($cache_backend, 'entity_browser_widget_selector_plugins');
}