You are here

public function Opml::render in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/style/Opml.php \Drupal\views\Plugin\views\style\Opml::render()

Render the display in this style.

Overrides StylePluginBase::render

File

core/modules/views/src/Plugin/views/style/Opml.php, line 64
Contains \Drupal\views\Plugin\views\style\Opml.

Class

Opml
Default style plugin to render an OPML feed.

Namespace

Drupal\views\Plugin\views\style

Code

public function render() {
  if (empty($this->view->rowPlugin)) {
    debug('Drupal\\views\\Plugin\\views\\style\\Opml: Missing row plugin');
    return;
  }
  $rows = array();
  foreach ($this->view->result as $row_index => $row) {
    $this->view->row_index = $row_index;
    $rows[] = $this->view->rowPlugin
      ->render($row);
  }
  $build = array(
    '#theme' => $this
      ->themeFunctions(),
    '#view' => $this->view,
    '#options' => $this->options,
    '#rows' => $rows,
  );
  unset($this->view->row_index);
  return $build;
}