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 bc8dfff..eec764e 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 @@ -89,7 +89,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o * Fields can set this to FALSE if they do not wish to allow * token based rewriting or link-making. */ - function allow_advanced_render() { + function allowAdvancedRender() { return TRUE; } @@ -688,7 +688,7 @@ public function buildOptionsForm(&$form, &$form_state) { '#weight' => 100, ); - if ($this->allow_advanced_render()) { + if ($this->allowAdvancedRender()) { $form['alter']['#tree'] = TRUE; $form['alter']['alter_text'] = array( '#type' => 'checkbox', @@ -1109,7 +1109,7 @@ function render($values) { * text-replacement rendering is necessary. */ function advanced_render($values) { - if ($this->allow_advanced_render() && method_exists($this, 'render_item')) { + if ($this->allowAdvancedRender() && method_exists($this, 'render_item')) { $raw_items = $this->get_items($values); // If there are no items, set the original value to NULL. if (empty($raw_items)) { @@ -1125,7 +1125,7 @@ function advanced_render($values) { $this->original_value = $value; } - if ($this->allow_advanced_render()) { + if ($this->allowAdvancedRender()) { $tokens = NULL; if (method_exists($this, 'render_item')) { $items = array(); 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 1dfa85b..a1148a7 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 @@ -114,7 +114,7 @@ function get_items($values) { * By default, advanced rendering will NOT be allowed if the class * inheriting from this does not implement a 'render_items' method. */ - function allow_advanced_render() { + function allowAdvancedRender() { // Note that the advanced render bits also use the presence of // this method to determine if it needs to render items as a list. return method_exists($this, 'render_item');