You are here

public function DisplayExtenderTest::optionsSummary in Drupal 9

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::optionsSummary()

Provide the default summary for options in the views UI.

This output is returned as an array.

Overrides DisplayExtenderPluginBase::optionsSummary

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/display_extender/DisplayExtenderTest.php, line 39

Class

DisplayExtenderTest
Defines a display extender test plugin.

Namespace

Drupal\views_test_data\Plugin\views\display_extender

Code

public function optionsSummary(&$categories, &$options) {
  parent::optionsSummary($categories, $options);
  $categories['display_extender_test'] = [
    'title' => $this
      ->t('Display extender test settings'),
    'column' => 'second',
    'build' => [
      '#weight' => -100,
    ],
  ];
  $options['test_extender_test_option'] = [
    'category' => 'display_extender_test',
    'title' => $this
      ->t('Test option'),
    'value' => views_ui_truncate($this->options['test_extender_test_option'], 24),
  ];
}