Overrides \Drupal\views\Plugin\views\display\PathPluginBase::execute().
Overrides PathPluginBase::execute
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);
$response = $this->view
->getResponse();
$response
->setContent(drupal_render_page($render));
return $response;
}