diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/ArgumentDefaultPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/ArgumentDefaultPluginBase.php index 3fd8d69..1df2774 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/ArgumentDefaultPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/ArgumentDefaultPluginBase.php @@ -80,7 +80,7 @@ public function access() { return TRUE; } * This is only called by child objects if specified in the buildOptionsForm(), * so it will not always be used. */ - function check_access(&$form, $option_name) { + protected function checkAccess(&$form, $option_name) { if (!$this->access()) { $form[$option_name]['#disabled'] = TRUE; $form[$option_name]['#value'] = $form[$this->option_name]['#default_value']; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Php.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Php.php index cf5a574..eaa8d76 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Php.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Php.php @@ -39,7 +39,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); // Only do this if using one simple standard form gadget - $this->check_access($form, 'code'); + $this->checkAccess($form, 'code'); } /** diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php index e481552..0e33ad6 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php @@ -72,7 +72,7 @@ public function access() { return TRUE; } * This is only called by child objects if specified in the buildOptionsForm(), * so it will not always be used. */ - function check_access(&$form, $option_name) { + protected function checkAccess(&$form, $option_name) { if (!$this->access()) { $form[$option_name]['#disabled'] = TRUE; $form[$option_name]['#value'] = $form[$this->option_name]['#default_value']; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/Php.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/Php.php index 9b23895..dc16a1c 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/Php.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument_validator/Php.php @@ -38,7 +38,7 @@ public function buildOptionsForm(&$form, &$form_state) { '#description' => t('Enter PHP code that returns TRUE or FALSE. No return is the same as FALSE, so be SURE to return something if you do not want to declare the argument invalid. Do not use <?php ?>. The argument to validate will be "$argument" and the view will be "$view". You may change the argument by setting "$handler->argument". You may change the title used for substitutions for this argument by setting "$handler->validated_title".'), ); - $this->check_access($form, 'code'); + $this->checkAccess($form, 'code'); } /**