Mercurial > hg > isophonics-drupal-site
annotate modules/contrib/views_slideshow/src/ViewsSlideshowSkinPluginManager.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | c69a71b4f40f |
children |
rev | line source |
---|---|
Chris@5 | 1 <?php |
Chris@5 | 2 |
Chris@5 | 3 namespace Drupal\views_slideshow; |
Chris@5 | 4 |
Chris@5 | 5 use Drupal\Core\Cache\CacheBackendInterface; |
Chris@5 | 6 use Drupal\Core\Extension\ModuleHandlerInterface; |
Chris@5 | 7 use Drupal\Core\Plugin\DefaultPluginManager; |
Chris@5 | 8 |
Chris@5 | 9 /** |
Chris@5 | 10 * Manager for Views Slideshow Skin plugins. |
Chris@5 | 11 */ |
Chris@5 | 12 class ViewsSlideshowSkinPluginManager extends DefaultPluginManager { |
Chris@5 | 13 |
Chris@5 | 14 /** |
Chris@5 | 15 * Constructs a new ViewsSlideshowSkinPluginManager. |
Chris@5 | 16 * |
Chris@5 | 17 * @param \Traversable $namespaces |
Chris@5 | 18 * An object that implements \Traversable which contains the root paths |
Chris@5 | 19 * keyed by the corresponding namespace to look for plugin implementations. |
Chris@5 | 20 * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend |
Chris@5 | 21 * Cache backend instance to use. |
Chris@5 | 22 * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler |
Chris@5 | 23 * The module handler. |
Chris@5 | 24 */ |
Chris@5 | 25 public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) { |
Chris@5 | 26 parent::__construct('Plugin/ViewsSlideshowSkin', $namespaces, $module_handler, 'Drupal\views_slideshow\ViewsSlideshowSkinInterface', 'Drupal\views_slideshow\Annotation\ViewsSlideshowSkin'); |
Chris@5 | 27 |
Chris@5 | 28 $this->alterInfo('views_slideshow_skin_info'); |
Chris@5 | 29 $this->setCacheBackend($cache_backend, 'views_slideshow_skin'); |
Chris@5 | 30 } |
Chris@5 | 31 |
Chris@5 | 32 } |