public function Flags::operators in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 modules/cms_content_sync_views/src/Plugin/views/filter/Flags.php \Drupal\cms_content_sync_views\Plugin\views\filter\Flags::operators()
- 2.0.x modules/cms_content_sync_views/src/Plugin/views/filter/Flags.php \Drupal\cms_content_sync_views\Plugin\views\filter\Flags::operators()
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 InOperator::operators
File
- modules/
cms_content_sync_views/ src/ Plugin/ views/ filter/ Flags.php, line 58
Class
- Flags
- Provides a view filter to filter on the sync state entity.
Namespace
Drupal\cms_content_sync_views\Plugin\views\filterCode
public function operators() {
$operators = [
'is' => [
'title' => $this
->t('Is'),
'short' => $this
->t('is'),
'short_single' => $this
->t('='),
'method' => 'opSimple',
'values' => 1,
],
];
return $operators;
}