diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/views/argument/UserUid.php b/core/modules/comment/lib/Drupal/comment/Plugin/views/argument/UserUid.php index e4fe764..5ff1fe6 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/views/argument/UserUid.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/views/argument/UserUid.php @@ -66,7 +66,10 @@ public function query($group_by = FALSE) { $this->query->add_where(0, $condition); } - function get_sort_name() { + /** + * {@inheritdoc} + */ + public function getSortName() { return t('Numerical', array(), array('context' => 'Sort order')); } 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 117ade9..7ff2045 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 @@ -594,7 +594,7 @@ function default_summary_form(&$form, &$form_state) { '#title' => t('Sort by'), '#default_value' => $this->options['summary']['number_of_records'], '#options' => array( - 0 => $this->get_sort_name(), + 0 => $this->getSortName(), 1 => t('Number of records') ), '#states' => array( @@ -1075,7 +1075,7 @@ function get_plugin($type = 'argument_default', $name = NULL) { * Subclasses should override this to specify what the default sort order of * their argument is (e.g. alphabetical, numeric, date). */ - function get_sort_name() { + public function getSortName() { return t('Default sort', array(), array('context' => 'Sort order')); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php index 6294ee3..737fd21 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/Date.php @@ -87,7 +87,10 @@ function get_default_argument($raw = FALSE) { return parent::get_default_argument($raw); } - function get_sort_name() { + /** + * {@inheritdoc} + */ + public function getSortName() { return t('Date', array(), array('context' => 'Sort order')); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/GroupByNumeric.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/GroupByNumeric.php index 7e8ef76..eead699 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/GroupByNumeric.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/GroupByNumeric.php @@ -30,7 +30,10 @@ public function adminLabel($short = FALSE) { return $this->getField(parent::adminLabel($short)); } - function get_sort_name() { + /** + * {@inheritdoc} + */ + public function getSortName() { return t('Numerical', array(), array('context' => 'Sort order')); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/Numeric.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/Numeric.php index 3038694..d9453d1 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/Numeric.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/Numeric.php @@ -117,7 +117,10 @@ public function query($group_by = FALSE) { } } - function get_sort_name() { + /** + * {@inheritdoc} + */ + public function getSortName() { return t('Numerical', array(), array('context' => 'Sort order')); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php index 139bdd2..06500bd 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php @@ -249,7 +249,10 @@ function summary_argument($data) { return $value; } - function get_sort_name() { + /** + * {@inheritdoc} + */ + public function getSortName() { return t('Alphabetical', array(), array('context' => 'Sort order')); }