/**
* Contains the operator which is used on the query.
+ *
+ * @var string
*/
public $operator = '=';
$this->options['expose']['multiple'] = TRUE;
}
-
// If there are relationships in the view, allow empty should be true
// so that we can do IS NULL checks on items. Not all filters respect
// allow empty, but string and numeric do and that covers enough.
'required' => ['default' => FALSE],
'remember' => ['default' => FALSE],
'multiple' => ['default' => FALSE],
- 'remember_roles' => ['default' => [
- RoleInterface::AUTHENTICATED_ID => RoleInterface::AUTHENTICATED_ID,
- ]],
+ 'remember_roles' => [
+ 'default' => [
+ RoleInterface::AUTHENTICATED_ID => RoleInterface::AUTHENTICATED_ID,
+ ],
+ ],
],
];
/**
* Determine if a filter can be exposed.
*/
- public function canExpose() { return TRUE; }
+ public function canExpose() {
+ return TRUE;
+ }
/**
* Determine if a filter can be converted into a group.
* Provide a list of options for the default operator form.
* Should be overridden by classes that don't override operatorForm
*/
- public function operatorOptions() { return []; }
+ public function operatorOptions() {
+ return [];
+ }
/**
* Validate the operator form.
*/
- protected function operatorValidate($form, FormStateInterface $form_state) { }
+ protected function operatorValidate($form, FormStateInterface $form_state) {}
/**
* Perform any necessary changes to the form values prior to storage.
* There is no need for this function to actually store the data.
*/
- public function operatorSubmit($form, FormStateInterface $form_state) { }
+ public function operatorSubmit($form, FormStateInterface $form_state) {}
/**
* Shortcut to display the value form.
/**
* Validate the options form.
*/
- protected function valueValidate($form, FormStateInterface $form_state) { }
+ protected function valueValidate($form, FormStateInterface $form_state) {}
/**
* Perform any necessary changes to the form values prior to storage.
* There is no need for this function to actually store the data.
*/
- protected function valueSubmit($form, FormStateInterface $form_state) { }
+ protected function valueSubmit($form, FormStateInterface $form_state) {}
/**
* Shortcut to display the exposed options form.
'#default_value' => $this->options['group_info']['remember'],
];
- $groups = ['All' => $this->t('- Any -')]; // The string '- Any -' will not be rendered see @theme_views_ui_build_group_filter_form
+ // The string '- Any -' will not be rendered.
+ // @see theme_views_ui_build_group_filter_form()
+ $groups = ['All' => $this->t('- Any -')];
// Provide 3 options to start when we are in a new group.
if (count($this->options['group_info']['group_items']) == 0) {
}
-
/**
* Sanitizes the HTML select element's options.
*