public function MetatagDisplayExtender::optionsSummary in Metatag 8
Provide the default summary for options in the views UI.
This output is returned as an array.
Overrides DisplayExtenderPluginBase::optionsSummary
File
- metatag_views/
src/ Plugin/ views/ display_extender/ MetatagDisplayExtender.php, line 187
Class
- MetatagDisplayExtender
- Metatag display extender plugin.
Namespace
Drupal\metatag_views\Plugin\views\display_extenderCode
public function optionsSummary(&$categories, &$options) {
$categories['metatags'] = [
'title' => $this
->t('Meta tags'),
'column' => 'second',
];
$options['metatags'] = [
'category' => 'metatags',
'title' => $this
->t('Meta tags'),
'value' => $this
->hasMetatags() ? $this
->t('Overridden') : $this
->t('Using defaults'),
];
}