diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/argument_default/Node.php b/core/modules/node/lib/Drupal/node/Plugin/views/argument_default/Node.php index 9e53ee8..f35eb9e 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/argument_default/Node.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/argument_default/Node.php @@ -24,7 +24,7 @@ */ class Node extends ArgumentDefaultPluginBase { - function get_argument() { + public function getArgument() { foreach (range(1, 3) as $i) { $node = menu_get_object('node', $i); if (!empty($node)) { diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument_default/Tid.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument_default/Tid.php index 5e95072..4771782 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument_default/Tid.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument_default/Tid.php @@ -117,7 +117,7 @@ public function submitOptionsForm(&$form, &$form_state, &$options = array()) { $options['vids'] = array_filter($options['vids']); } - function get_argument() { + public function getArgument() { // Load default argument from taxonomy page. if (!empty($this->options['term_page'])) { if (arg(0) == 'taxonomy' && arg(1) == 'term' && is_numeric(arg(2))) { diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/argument_default/CurrentUser.php b/core/modules/user/lib/Drupal/user/Plugin/views/argument_default/CurrentUser.php index 4d27b49..8ed758e 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/argument_default/CurrentUser.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/argument_default/CurrentUser.php @@ -24,7 +24,7 @@ */ class CurrentUser extends ArgumentDefaultPluginBase { - function get_argument() { + public function getArgument() { global $user; return $user->uid; } diff --git a/core/modules/user/lib/Drupal/user/Plugin/views/argument_default/User.php b/core/modules/user/lib/Drupal/user/Plugin/views/argument_default/User.php index 360ec9d..45c4c2a 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/views/argument_default/User.php +++ b/core/modules/user/lib/Drupal/user/Plugin/views/argument_default/User.php @@ -37,7 +37,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function get_argument() { + public function getArgument() { foreach (range(1, 3) as $i) { $user = menu_get_object('user', $i); if (!empty($user)) { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php index cb236d9..36eed67 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php @@ -744,7 +744,7 @@ function hasDefaultArgument() { public function getDefaultArgument() { $plugin = $this->getPlugin('argument_default'); if ($plugin) { - return $plugin->get_argument(); + return $plugin->getArgument(); } } 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 1df2774..0065815 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 @@ -34,7 +34,7 @@ * * This needs to be overridden by every default argument handler to properly do what is needed. */ - function get_argument() { } + public function getArgument() { } /** * Sets the parent argument this plugin is associated with. diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Fixed.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Fixed.php index fcdda9d..d825dc7 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Fixed.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Fixed.php @@ -41,7 +41,7 @@ public function buildOptionsForm(&$form, &$form_state) { /** * Return the default argument. */ - function get_argument() { + public function getArgument() { return $this->options['argument']; } 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 eaa8d76..2fc8c38 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 @@ -50,7 +50,7 @@ public function access() { return user_access('use PHP for settings'); } - function get_argument() { + public function getArgument() { // set up variables to make it easier to reference during the argument. $view = &$this->view; $argument = &$this->argument; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Raw.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Raw.php index a2a6290..25daa42 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Raw.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument_default/Raw.php @@ -49,7 +49,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function get_argument() { + public function getArgument() { $path = NULL; if ($this->options['use_alias']) { $path = drupal_get_path_alias(); diff --git a/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/argument_default/ArgumentDefaultTest.php b/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/argument_default/ArgumentDefaultTest.php index ba706bb..c21da95 100644 --- a/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/argument_default/ArgumentDefaultTest.php +++ b/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/argument_default/ArgumentDefaultTest.php @@ -32,9 +32,9 @@ protected function defineOptions() { } /** - * Overrides Drupal\views\Plugin\views\argument_default\ArgumentDefaultPluginBase::get_argument(). + * {@inheritdoc} */ - public function get_argument() { + public function getArgument() { return $this->options['value']; }