You are here

public function ViewsAjax::defaultableSections in Views Ajax Get 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/views/display_extender/ViewsAjax.php \Drupal\views_ajax_get\Plugin\views\display_extender\ViewsAjax::defaultableSections()

Static member function to list which sections are defaultable and what items each section contains.

Overrides DisplayExtenderPluginBase::defaultableSections

File

src/Plugin/views/display_extender/ViewsAjax.php, line 59

Class

ViewsAjax
Defines a display extender for views_ajax_get.

Namespace

Drupal\views_ajax_get\Plugin\views\display_extender

Code

public function defaultableSections(&$sections, $section = NULL) {
  $sections['ajax_get'] = [
    'ajax_get',
  ];
}