diff --git a/core/modules/field/lib/Drupal/field/Plugin/views/argument/FieldList.php b/core/modules/field/lib/Drupal/field/Plugin/views/argument/FieldList.php index 2176c91..d6ddcac 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/views/argument/FieldList.php +++ b/core/modules/field/lib/Drupal/field/Plugin/views/argument/FieldList.php @@ -61,7 +61,7 @@ public function buildOptionsForm(&$form, &$form_state) { ); } - function summary_name($data) { + public function summaryName($data) { $value = $data->{$this->name_alias}; // If the list element has a human readable name show it, if (isset($this->allowed_values[$value]) && !empty($this->options['summary']['human'])) { diff --git a/core/modules/field/lib/Drupal/field/Plugin/views/argument/ListString.php b/core/modules/field/lib/Drupal/field/Plugin/views/argument/ListString.php index ada688f..0c34d1b 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/views/argument/ListString.php +++ b/core/modules/field/lib/Drupal/field/Plugin/views/argument/ListString.php @@ -63,7 +63,7 @@ public function buildOptionsForm(&$form, &$form_state) { } - function summary_name($data) { + public function summaryName($data) { $value = $data->{$this->name_alias}; // If the list element has a human readable name show it, if (isset($this->allowed_values[$value]) && !empty($this->options['summary']['human'])) { diff --git a/core/modules/language/lib/Drupal/language/Plugin/views/argument/LanguageArgument.php b/core/modules/language/lib/Drupal/language/Plugin/views/argument/LanguageArgument.php index a23e7c4..e306cb3 100644 --- a/core/modules/language/lib/Drupal/language/Plugin/views/argument/LanguageArgument.php +++ b/core/modules/language/lib/Drupal/language/Plugin/views/argument/LanguageArgument.php @@ -20,16 +20,16 @@ class LanguageArgument extends ArgumentPluginBase { /** - * Overrides \Drupal\views\Plugin\views\argument\ArgumentPluginBase::summary_name(). + * Overrides \Drupal\views\Plugin\views\argument\ArgumentPluginBase::summaryName(). * * Gets the user-friendly version of the language name. */ - function summary_name($data) { + public function summaryName($data) { return $this->language($data->{$this->name_alias}); } /** - * Overrides \Drupal\views\Plugin\views\argument\ArgumentPluginBase::summary_name(). + * Overrides \Drupal\views\Plugin\views\argument\ArgumentPluginBase::summaryName(). * * Gets the user friendly version of the language name for display as a * title placeholder. diff --git a/core/modules/node/lib/Drupal/node/Plugin/views/argument/Type.php b/core/modules/node/lib/Drupal/node/Plugin/views/argument/Type.php index e8eb090..9d93846 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/views/argument/Type.php +++ b/core/modules/node/lib/Drupal/node/Plugin/views/argument/Type.php @@ -18,10 +18,10 @@ class Type extends String { /** - * Override the behavior of summary_name(). Get the user friendly version + * Override the behavior of summaryName(). Get the user friendly version * of the node type. */ - function summary_name($data) { + public function summaryName($data) { return $this->node_type($data->{$this->name_alias}); } 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 c471e68..d659fa5 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 @@ -895,7 +895,7 @@ function summary_argument($data) { * @param $data * The query results for the row. */ - function summary_name($data) { + public function summaryName($data) { $value = $data->{$this->name_alias}; if (empty($value) && !empty($this->definition['empty field name'])) { $value = $this->definition['empty field name']; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/DayDate.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/DayDate.php index 003f50b..8612703 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/DayDate.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/DayDate.php @@ -29,7 +29,7 @@ class DayDate extends Date { /** * Provide a link to the next level of the view */ - function summary_name($data) { + public function summaryName($data) { $day = str_pad($data->{$this->name_alias}, 2, '0', STR_PAD_LEFT); // strtotime respects server timezone, so we need to set the time fixed as utc time return format_date(strtotime("2005" . "05" . $day . " 00:00:00 UTC"), 'custom', $this->format, 'UTC'); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/FullDate.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/FullDate.php index 0626504..b29c589 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/FullDate.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/FullDate.php @@ -29,7 +29,7 @@ class FullDate extends Date { /** * Provide a link to the next level of the view */ - function summary_name($data) { + public function summaryName($data) { $created = $data->{$this->name_alias}; return format_date(strtotime($created . " 00:00:00 UTC"), 'custom', $this->format, 'UTC'); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/MonthDate.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/MonthDate.php index 2618836..1981157 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/MonthDate.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/MonthDate.php @@ -29,7 +29,7 @@ class MonthDate extends Date { /** * Provide a link to the next level of the view */ - function summary_name($data) { + public function summaryName($data) { $month = str_pad($data->{$this->name_alias}, 2, '0', STR_PAD_LEFT); return format_date(strtotime("2005" . $month . "15" . " 00:00:00 UTC" ), 'custom', $this->format, 'UTC'); } 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..664948c 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 @@ -285,8 +285,8 @@ function title_query() { return drupal_map_assoc($this->value, 'check_plain'); } - function summary_name($data) { - return $this->caseTransform(parent::summary_name($data), $this->options['case']); + public function summaryName($data) { + return $this->caseTransform(parent::summaryName($data), $this->options['case']); } } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/WeekDate.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/WeekDate.php index 086ff63..29fa35b 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/WeekDate.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/WeekDate.php @@ -24,7 +24,7 @@ class WeekDate extends Date { /** * Provide a link to the next level of the view */ - function summary_name($data) { + public function summaryName($data) { $created = $data->{$this->name_alias}; return t('Week @week', array('@week' => $created)); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/YearMonthDate.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/YearMonthDate.php index a0588b5..56f8cb6 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/YearMonthDate.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/YearMonthDate.php @@ -29,7 +29,7 @@ class YearMonthDate extends Date { /** * Provide a link to the next level of the view */ - function summary_name($data) { + public function summaryName($data) { $created = $data->{$this->name_alias}; return format_date(strtotime($created . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC'); } diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index 049815c..bc21f82 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -438,7 +438,7 @@ function template_preprocess_views_view_summary(&$vars) { $argument->process_summary_arguments($row_args); foreach ($vars['rows'] as $id => $row) { - $vars['rows'][$id]->link = $argument->summary_name($row); + $vars['rows'][$id]->link = $argument->summaryName($row); $args = $view->args; $args[$argument->position] = $row_args[$id]; @@ -502,7 +502,7 @@ function template_preprocess_views_view_summary_unformatted(&$vars) { if ($count++) { $vars['rows'][$id]->separator = filter_xss_admin($vars['options']['separator']); } - $vars['rows'][$id]->link = $argument->summary_name($row); + $vars['rows'][$id]->link = $argument->summaryName($row); $args = $view->args; $args[$argument->position] = $row_args[$id];