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..8dde5f5 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..f211f1e 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..bc08626 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..6fa370b 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 117ade9..3466693 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 @@ -808,7 +808,7 @@ function summary_query() { // Add the field. $this->base_alias = $this->query->add_field($this->tableAlias, $this->realField); - $this->summary_name_field(); + $this->summaryName_field(); return $this->summary_basics(); } @@ -816,7 +816,7 @@ function summary_query() { * Add the name field, which is the field displayed in summary queries. * This is often used when the argument is numeric. */ - function summary_name_field() { + public function summaryName_field() { // Add the 'name' field. For example, if this is a uid argument, the // name field would be 'name' (i.e, the username). @@ -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..49f377f 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..79c4d5d 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/ManyToOne.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/ManyToOne.php index 803d31a..273694b 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/ManyToOne.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/ManyToOne.php @@ -179,7 +179,7 @@ function summary_query() { // Add the field. $this->base_alias = $this->query->add_field($this->tableAlias, $this->realField); - $this->summary_name_field(); + $this->summaryName_field(); return $this->summary_basics(); } 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..8e9c7cb 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..98755c0 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 @@ -166,7 +166,7 @@ function summary_query() { $this->query->set_count_field(NULL, $formula, $this->field, $this->field . '_truncated'); } - $this->summary_name_field(); + $this->summaryName_field(); return $this->summary_basics(FALSE); } @@ -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..f2e472b 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..37a26cf 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 e987ffd..8660524 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -357,7 +357,7 @@ function template_preprocess_views_view_summary(&$vars) { 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]; @@ -410,7 +410,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];