Example #1
0
 /**
  * {@inheritdoc}
  */
 public function defaultConfiguration()
 {
     $options = parent::defaultConfiguration() + ['hide_on_single_slide' => array('default' => 0), 'type' => array('default' => 0), 'views_slideshow_pager_numbered_hover' => array('default' => 0), 'views_slideshow_pager_numbered_click_to_page' => array('default' => 0), 'views_slideshow_pager_thumbnails_hover' => array('default' => 0), 'views_slideshow_pager_thumbnails_click_to_page' => array('default' => 0)];
     /** @var \Drupal\Component\Plugin\PluginManagerInterface */
     $widgetManager = \Drupal::service('plugin.manager.views_slideshow.widget');
     // Get default configuration of all Pager plugins.
     foreach ($widgetManager->getDefinitions($this->getPluginId()) as $widget_id => $widget_info) {
         $options += $widgetManager->createInstance($widget_id, [])->defaultConfiguration();
     }
     return $options;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function defaultConfiguration()
 {
     return parent::defaultConfiguration() + ['hide_on_single_slide' => array('default' => 0), 'type' => array('default' => 0)];
 }