public function PathPluginBase::execute

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

Overrides DisplayPluginBase::execute

2 calls to PathPluginBase::execute()
Feed::execute in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php
Overrides \Drupal\views\Plugin\views\display\PathPluginBase::execute().
Page::execute in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php
Overrides \Drupal\views\Plugin\views\display\PathPluginBase::execute().
2 methods override PathPluginBase::execute()
Feed::execute in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php
Overrides \Drupal\views\Plugin\views\display\PathPluginBase::execute().
Page::execute in drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Page.php
Overrides \Drupal\views\Plugin\views\display\PathPluginBase::execute().

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php, line 194
Contains Drupal\views\Plugin\views\display\PathPluginBase.

Class

PathPluginBase
The base display plugin for path/callbacks. This is used for pages, feeds.

Namespace

Drupal\views\Plugin\views\display

Code

public function execute() {

  // Prior to this being called, the $view should already be set to this
  // display, and arguments should be set on the view.
  $this->view
    ->build();
  if (!empty($this->view->build_info['fail'])) {
    throw new NotFoundHttpException();
  }
  if (!empty($this->view->build_info['denied'])) {
    throw new AccessDeniedHttpException();
  }
}