protected function SectionId::defineOptions in Workbench Access 8
Same name in this branch
- 8 src/Plugin/views/filter/SectionId.php \Drupal\workbench_access\Plugin\views\filter\SectionId::defineOptions()
- 8 src/Plugin/views/field/SectionId.php \Drupal\workbench_access\Plugin\views\field\SectionId::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides ManyToOne::defineOptions
File
- src/
Plugin/ views/ filter/ SectionId.php, line 67
Class
- SectionId
- Filter by assigned section.
Namespace
Drupal\workbench_access\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['operator']['default'] = 'in';
$options['value']['default'] = [
'All',
];
$options['output_format']['default'] = 'label';
return $options;
}