You are here

protected function Jssor::defineOptions in Jssor Slider 8

Same name in this branch
  1. 8 src/Plugin/views/style/Jssor.php \Drupal\jssor\Plugin\views\style\Jssor::defineOptions()
  2. 8 src/Plugin/views/row/Jssor.php \Drupal\jssor\Plugin\views\row\Jssor::defineOptions()

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides RowPluginBase::defineOptions

File

src/Plugin/views/row/Jssor.php, line 30
Definition of Drupal\jssor\Plugin\views\row\Jssor.

Class

Jssor
Row handler plugin for displaying search results.

Namespace

Drupal\jssor\Plugin\views\row

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['image_options'] = array(
    'default' => array(),
  );
  $options['caption_options'] = array(
    'default' => array(),
  );
  $options['play_in_transition'] = array(
    'default' => '',
  );
  $options['play_in_mode'] = array(
    'default' => 1,
  );
  $options['play_out_transition'] = array(
    'default' => '',
  );
  $options['play_out_mode'] = array(
    'default' => 1,
  );
  return $options;
}