protected function ViewsAjax::defineOptions in Views Ajax Get 8
Same name and namespace in other branches
- 2.0.x src/Plugin/views/display_extender/ViewsAjax.php \Drupal\views_ajax_get\Plugin\views\display_extender\ViewsAjax::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 PluginBase::defineOptions
File
- src/
Plugin/ views/ display_extender/ ViewsAjax.php, line 21
Class
- ViewsAjax
- Defines a display extender for views_ajax_get.
Namespace
Drupal\views_ajax_get\Plugin\views\display_extenderCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['ajax_get'] = [
'default' => FALSE,
];
return $options;
}