public function PathPluginBase::execute

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

Overrides DisplayPluginBase::execute

3 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().
RestExport::execute in drupal/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::execute().
3 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().
RestExport::execute in drupal/core/modules/rest/lib/Drupal/rest/Plugin/views/display/RestExport.php
Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::execute().

File

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

Class

PathPluginBase
The base display plugin for path/callbacks. This is used for pages and 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();
  }
}