You are here

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