You are here

function PrerenderList::allow_advanced_render in Views (for Drupal 7) 8.3

Determine if advanced rendering is allowed.

By default, advanced rendering will NOT be allowed if the class inheriting from this does not implement a 'render_items' method.

Overrides FieldPluginBase::allow_advanced_render

File

lib/Drupal/views/Plugin/views/field/PrerenderList.php, line 119
Definition of Drupal\views\Plugin\views\field\PrerenderList.

Class

PrerenderList
Field handler to provide a list of items.

Namespace

Drupal\views\Plugin\views\field

Code

function allow_advanced_render() {

  // 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');
}