public function DisplayTest::optionsSummary in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\display\DisplayPluginBase::optionsSummaryv().
Overrides DisplayPluginBase::optionsSummary
File
- tests/
views_test_data/ lib/ Drupal/ views_test_data/ Plugin/ views/ display/ DisplayTest.php, line 46 - Definition of Drupal\views_test_data\Plugin\views\display\DisplayTest.
Class
- DisplayTest
- Defines a Display test plugin.
Namespace
Drupal\views_test_data\Plugin\views\displayCode
public function optionsSummary(&$categories, &$options) {
parent::optionsSummary($categories, $options);
$categories['display_test'] = array(
'title' => t('Display test settings'),
'column' => 'second',
'build' => array(
'#weight' => -100,
),
);
$test_option = $this
->getOption('test_option') ?: t('Empty');
$options['test_option'] = array(
'category' => 'display_test',
'title' => t('Test option'),
'value' => views_ui_truncate($test_option, 24),
);
}