public function ViewsMergeRowsDisplayExtenderPlugin::optionsSummary in Views Merge Rows 8.2
@phpstan-ignore-next-line
Overrides DisplayExtenderPluginBase::optionsSummary
File
- src/
Plugin/ views/ display_extender/ ViewsMergeRowsDisplayExtenderPlugin.php, line 214
Class
- ViewsMergeRowsDisplayExtenderPlugin
- Provides interface to manage merge options on a per-field basis.
Namespace
Drupal\views_merge_rows\Plugin\views\display_extenderCode
public function optionsSummary(&$categories, &$options) : void {
if (!$this->displayHandler
->usesFields()) {
return;
}
$options['views_merge_rows'] = [
'category' => 'other',
'title' => $this
->t('Merge rows'),
'value' => $this->options['merge_rows'] ? $this
->t('Yes') : $this
->t('No'),
'desc' => $this
->t('Allow merging rows with the same content in the specified fields.'),
];
}