public function ViewsAttachLibraryDisplayExtender::optionsSummary in Views Attach Library 8
Same name and namespace in other branches
- 8.x src/Plugin/views/display_extender/ViewsAttachLibraryDisplayExtender.php \Drupal\views_attach_library\Plugin\views\display_extender\ViewsAttachLibraryDisplayExtender::optionsSummary()
- 2.0.x src/Plugin/views/display_extender/ViewsAttachLibraryDisplayExtender.php \Drupal\views_attach_library\Plugin\views\display_extender\ViewsAttachLibraryDisplayExtender::optionsSummary()
Provide the default summary for options in the views UI.
This output is returned as an array.
Overrides DisplayExtenderPluginBase::optionsSummary
File
- src/
Plugin/ views/ display_extender/ ViewsAttachLibraryDisplayExtender.php, line 76
Class
- ViewsAttachLibraryDisplayExtender
- Views Attach Library display extender plugin.
Namespace
Drupal\views_attach_library\Plugin\views\display_extenderCode
public function optionsSummary(&$categories, &$options) {
$categories['attach_library'] = [
'title' => t('Attach Library'),
'column' => 'second',
];
$options['attach_library'] = [
'category' => 'attach_library',
'title' => t('Attach Library'),
'value' => empty($this->options['attach_library']['attach_library']) ? $this
->t('Add Library') : $this
->t('Edit Library'),
];
}