summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-06-10 23:13:23 (GMT)
committerAlex Pott2013-06-10 23:13:23 (GMT)
commitac6bbe45eecc416ed9cb210f2172a98c23b13934 (patch)
tree229bc858f41f56770a2638299432b092b18b3025
parentedb0095ee24cdcaee67d748f0ded6243bc810938 (diff)
Issue #2002918 by sillygwailo, kronda, oenie, jibran: Rename Views method get_items() to getItems().
-rw-r--r--core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php2
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php2
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/field/PrerenderList.php2
3 files changed, 3 insertions, 3 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 60b67e7..71cdd35 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
@@ -643,7 +643,7 @@ class Field extends FieldPluginBase {
/**
* Return an array of items for the field.
*/
- function get_items($values) {
+ protected function getItems($values) {
$original_entity = $this->get_entity($values);
if (!$original_entity) {
return array();
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 bd3c0d1..8019cf6 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
@@ -1111,7 +1111,7 @@ If you would like to have the characters \'[\' and \']\' use the html entity cod
*/
public function advancedRender($values) {
if ($this->allowAdvancedRender() && method_exists($this, 'render_item')) {
- $raw_items = $this->get_items($values);
+ $raw_items = $this->getItems($values);
// If there are no items, set the original value to NULL.
if (empty($raw_items)) {
$this->original_value = NULL;
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 e47771d..4e43e76 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
@@ -100,7 +100,7 @@ class PrerenderList extends FieldPluginBase {
* is to be made. Additionally, items that might be turned into tokens
* should also be in this array.
*/
- function get_items($values) {
+ protected function getItems($values) {
$field = $this->getValue($values);
if (!empty($this->items[$field])) {
return $this->items[$field];