diff modules/contrib/views_slideshow/src/ViewsSlideshowSkinBase.php @ 5:c69a71b4f40f

Add slideshow module
author Chris Cannam
date Thu, 07 Dec 2017 14:46:23 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/contrib/views_slideshow/src/ViewsSlideshowSkinBase.php	Thu Dec 07 14:46:23 2017 +0000
@@ -0,0 +1,33 @@
+<?php
+
+namespace Drupal\views_slideshow;
+
+use Drupal\Component\Plugin\PluginBase;
+
+/**
+ * Provides basic functionality for Views slideshow skins.
+ */
+abstract class ViewsSlideshowSkinBase extends PluginBase implements ViewsSlideshowSkinInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getLabel() {
+    return $this->pluginDefinition['label'];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getClass() {
+    return $this->pluginDefinition['id'];
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getLibraries() {
+    return $this->pluginDefinition['libraries'];
+  }
+
+}