You are here

public function ViewsSlideshowWidgetTypePluginManager::__construct in Views Slideshow 8.4

Constructs a new ViewsSlideshowWidgetTypePluginManager.

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/ViewsSlideshowWidgetTypePluginManager.php, line 25

Class

ViewsSlideshowWidgetTypePluginManager
Manager for Views Slideshow widget type plugins.

Namespace

Drupal\views_slideshow

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
  parent::__construct('Plugin/ViewsSlideshowWidgetType', $namespaces, $module_handler, 'Drupal\\views_slideshow\\ViewsSlideshowWidgetTypeInterface', 'Drupal\\views_slideshow\\Annotation\\ViewsSlideshowWidgetType');
  $this
    ->alterInfo('views_slideshow_widget_type_info');
  $this
    ->setCacheBackend($cache_backend, 'views_slideshow_widget_type');
}