public function DisplayPluginBase::renderArea

Render one of the available areas.

Parameters

string $area: Identifier of the specific area to render.

bool $empty: (optional) Indicator whether or not the view result is empty. Defaults to FALSE

Return value

array A render array for the given area.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 2503
Contains Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Namespace

Drupal\views\Plugin\views\display

Code

public function renderArea($area, $empty = FALSE) {
  $return = array();
  foreach ($this
    ->getHandlers($area) as $key => $area_handler) {
    $return[$key] = $area_handler
      ->render($empty);
  }
  return $return;
}