Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::optionsSummary().
Overrides PathPluginBase::optionsSummary
public function optionsSummary(&$categories, &$options) {
parent::optionsSummary($categories, $options);
// Since we're childing off the 'path' type, we'll still *call* our
// category 'page' but let's override it so it says feed settings.
$categories['page'] = array(
'title' => t('Feed settings'),
'column' => 'second',
'build' => array(
'#weight' => -10,
),
);
if ($this
->getOption('sitename_title')) {
$options['title']['value'] = t('Using the site name');
}
$displays = array_filter($this
->getOption('displays'));
if (count($displays) > 1) {
$attach_to = t('Multiple displays');
}
elseif (count($displays) == 1) {
$display = array_shift($displays);
$displays = $this->view->storage
->get('display');
if (!empty($displays[$display])) {
$attach_to = check_plain($displays[$display]['display_title']);
}
}
if (!isset($attach_to)) {
$attach_to = t('None');
}
$options['displays'] = array(
'category' => 'page',
'title' => t('Attach to'),
'value' => $attach_to,
);
}