Skip to content
Snippets Groups Projects
Commit ac6bbe45 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2002918 by sillygwailo, kronda, oenie, jibran: Rename Views method...

Issue #2002918 by sillygwailo, kronda, oenie, jibran: Rename Views method get_items() to getItems().
parent edb0095e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -643,7 +643,7 @@ function render_items($items) {
/**
* 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();
......
......@@ -1111,7 +1111,7 @@ function render($values) {
*/
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;
......
......@@ -100,7 +100,7 @@ function render_items($items) {
* 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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment