From be16278b03a121728f45138bffcdc82661959b56 Mon Sep 17 00:00:00 2001 From: Lucas D Hedding Date: Tue, 11 Jun 2013 07:15:30 -0500 Subject: [PATCH] Issue #2003330 by heddn, ericthelast | Dan Reinders: Rename Views method render_items() to renderItems(). --- core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php | 4 ++-- .../views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php | 2 +- .../views/lib/Drupal/views/Plugin/views/field/PrerenderList.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php b/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php index 71cdd35..4fe96de 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php +++ b/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php @@ -25,7 +25,7 @@ class Field extends FieldPluginBase { /** - * An array to store field renderable arrays for use by render_items. + * An array to store field renderable arrays for use by renderItems(). * * @var array */ @@ -620,7 +620,7 @@ public function submitGroupByForm(&$form, &$form_state) { * When using advanced render, each possible item in the list is rendered * individually. Then the items are all pasted together. */ - function render_items($items) { + protected function renderItems($items) { if (!empty($items)) { if (!$this->options['group_rows']) { return implode('', $items); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php index 8019cf6..ca617e3 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php @@ -1143,7 +1143,7 @@ public function advancedRender($values) { $items[] = $this->renderText($alter); } - $value = $this->render_items($items); + $value = $this->renderItems($items); } else { $alter = array('phase' => VIEWS_HANDLER_RENDER_TEXT_PHASE_COMPLETELY) + $this->options['alter']; diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/PrerenderList.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/PrerenderList.php index 4e43e76..f5c3f28 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/PrerenderList.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/PrerenderList.php @@ -73,7 +73,7 @@ public function buildOptionsForm(&$form, &$form_state) { * When using advanced render, each possible item in the list is rendered * individually. Then the items are all pasted together. */ - function render_items($items) { + protected function renderItems($items) { if (!empty($items)) { if ($this->options['type'] == 'separator') { return implode($this->sanitizeValue($this->options['separator'], 'xss_admin'), $items); @@ -113,7 +113,7 @@ protected function getItems($values) { * Determine if advanced rendering is allowed. * * By default, advanced rendering will NOT be allowed if the class - * inheriting from this does not implement a 'render_items' method. + * inheriting from this does not implement a 'renderItems' method. */ protected function allowAdvancedRender() { // Note that the advanced render bits also use the presence of -- 1.7.10.4