public function Page::execute

Overrides \Drupal\views\Plugin\views\display\PathPluginBase::execute().

Overrides PathPluginBase::execute

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php, line 80
Contains Drupal\views\Plugin\views\display\Page.

Class

Page
The plugin that handles a full page.

Namespace

Drupal\views\Plugin\views\display

Code

public function execute() {
  parent::execute();

  // Let the world know that this is the page view we're using.
  views_set_page_view($this->view);
  $this->view
    ->getBreadcrumb(TRUE);

  // And now render the view.
  $render = $this->view
    ->render();

  // First execute the view so it's possible to get tokens for the title.
  // And the title, which is much easier.
  drupal_set_title(filter_xss_admin($this->view
    ->getTitle()), PASS_THROUGH);
  return $render;
}