public function Section::operators in Workbench Access 8
This kind of construct makes it relatively easy for a child class to add or remove functionality by overriding this function and adding/removing items from this array.
Overrides ManyToOne::operators
File
- src/
Plugin/ views/ filter/ Section.php, line 175
Class
- Section
- Filter by assigned section.
Namespace
Drupal\workbench_access\Plugin\views\filterCode
public function operators() {
$operators = [
'in' => [
'title' => $this
->t('Is one of'),
'short' => $this
->t('in'),
'short_single' => $this
->t('='),
'method' => 'opSimple',
'values' => 1,
],
'not in' => [
'title' => $this
->t('Is not one of'),
'short' => $this
->t('not in'),
'short_single' => $this
->t('<>'),
'method' => 'opSimple',
'values' => 1,
],
];
return $operators;
}