diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php index 57a23ee..bf95c94 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php @@ -211,7 +211,7 @@ function value_form(&$form, &$form_state) { } } - function value_validate($form, &$form_state) { + protected function valueValidate($form, &$form_state) { // We only validate if they've chosen the text field style. if ($this->options['type'] != 'textfield') { return; diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php index 3e379a4..81cb4fa 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/filter/Name.php @@ -50,7 +50,7 @@ function value_form(&$form, &$form_state) { } } - function value_validate($form, &$form_state) { + protected function valueValidate($form, &$form_state) { $values = drupal_explode_tags($form_state['values']['options']['value']); $uids = $this->validate_user_strings($form['value'], $values); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php index 480d2cb..2fd5752 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php @@ -135,7 +135,7 @@ function value_form(&$form, &$form_state) { } } - function value_validate($form, &$form_state) { + protected function valueValidate($form, &$form_state) { if ($form_state['values']['options']['value'] == 'All' && !empty($form_state['values']['options']['expose']['required'])) { form_set_error('value', t('You must select a value unless this is an non-required exposed filter.')); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php index 90b7efa..96db599 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php @@ -235,7 +235,7 @@ public function buildOptionsForm(&$form, &$form_state) { */ public function validateOptionsForm(&$form, &$form_state) { $this->operator_validate($form, $form_state); - $this->value_validate($form, $form_state); + $this->valueValidate($form, $form_state); if (!empty($this->options['exposed']) && !$this->isAGroup()) { $this->validateExposeForm($form, $form_state); } @@ -332,7 +332,7 @@ function value_form(&$form, &$form_state) { $form['value'] = array(); } /** * Validate the options form. */ - function value_validate($form, &$form_state) { } + protected function valueValidate($form, &$form_state) { } /** * Perform any necessary changes to the form values prior to storage.