You are here

public function DisplayExtenderTest::defaultableSections in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/tests/modules/views_test_data/src/Plugin/views/display_extender/DisplayExtenderTest.php \Drupal\views_test_data\Plugin\views\display_extender\DisplayExtenderTest::defaultableSections()

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

Overrides DisplayExtenderPluginBase::defaultableSections

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/display_extender/DisplayExtenderTest.php, line 93
Contains \Drupal\views_test_data\Plugin\views\display_extender\DisplayExtenderTest.

Class

DisplayExtenderTest
Defines a display extender test plugin.

Namespace

Drupal\views_test_data\Plugin\views\display_extender

Code

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