You are here

public function DisplayExtenderTest::defaultableSections in Drupal 10

Same name and namespace in other branches
  1. 8 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()
  2. 9 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 88

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'] = [
    'test_extender_test_option',
  ];
}