diff modules/contrib/views_slideshow/src/ViewsSlideshowWidgetInterface.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/ViewsSlideshowWidgetInterface.php	Thu Dec 07 14:46:23 2017 +0000
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\views_slideshow;
+
+use Drupal\Component\Plugin\ConfigurablePluginInterface;
+use Drupal\Component\Plugin\PluginInspectionInterface;
+use Drupal\Core\Plugin\PluginFormInterface;
+
+/**
+ * Provides an interface for a Views slideshow widget.
+ */
+interface ViewsSlideshowWidgetInterface extends PluginInspectionInterface, ConfigurablePluginInterface, PluginFormInterface {
+
+  /**
+   * Check if the widget is compatible with the current view configuration.
+   *
+   * @return bool
+   *   TRUE if the widget is compatible with the view.
+   */
+  public function checkCompatiblity($view);
+
+}