You are here

public function DisplayExtenderTest::optionsSummary in Views (for Drupal 7) 8.3

Overrides Drupal\views\Plugin\views\display\DisplayPluginBase::optionsSummary().

Overrides DisplayExtenderPluginBase::optionsSummary

File

tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/display_extender/DisplayExtenderTest.php, line 43
Definition of 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' => t('Display extender test settings'),
    'column' => 'second',
    'build' => array(
      '#weight' => -100,
    ),
  );
  $test_option = $this->displayHandler
    ->getOption('test_extender_test_option') ?: t('Empty');
  $options['test_extender_test_option'] = array(
    'category' => 'display_extender_test',
    'title' => t('Test option'),
    'value' => views_ui_truncate($test_option, 24),
  );
}