Commit e55477f8 authored by alexpott's avatar alexpott

Issue #2002356 by Gang Wang, Dan Reinders: Rename Views method...

Issue #2002356 by Gang Wang, Dan Reinders: Rename Views method allow_advanced_render() to allowAdvancedRender().
parent 86b2e89a
......@@ -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() {
protected 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();
......
......@@ -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() {
protected 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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment