Issue #2002918 by sillygwailo, kronda, oenie, jibran: Rename Views method get_items() to getItems().

8.0.x
Alex Pott 2013-06-11 00:13:23 +01:00
parent edb0095ee2
commit ac6bbe45ee
3 changed files with 3 additions and 3 deletions

View File

@ -643,7 +643,7 @@ class Field extends FieldPluginBase {
/** /**
* Return an array of items for the field. * Return an array of items for the field.
*/ */
function get_items($values) { protected function getItems($values) {
$original_entity = $this->get_entity($values); $original_entity = $this->get_entity($values);
if (!$original_entity) { if (!$original_entity) {
return array(); return array();

View File

@ -1111,7 +1111,7 @@ If you would like to have the characters \'[\' and \']\' use the html entity cod
*/ */
public function advancedRender($values) { public function advancedRender($values) {
if ($this->allowAdvancedRender() && method_exists($this, 'render_item')) { 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 there are no items, set the original value to NULL.
if (empty($raw_items)) { if (empty($raw_items)) {
$this->original_value = NULL; $this->original_value = NULL;

View File

@ -100,7 +100,7 @@ class PrerenderList extends FieldPluginBase {
* is to be made. Additionally, items that might be turned into tokens * is to be made. Additionally, items that might be turned into tokens
* should also be in this array. * should also be in this array.
*/ */
function get_items($values) { protected function getItems($values) {
$field = $this->getValue($values); $field = $this->getValue($values);
if (!empty($this->items[$field])) { if (!empty($this->items[$field])) {
return $this->items[$field]; return $this->items[$field];