Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PathPluginBase.php

function PathPluginBase::execute

Overrides DisplayPluginBase::execute

6 calls to PathPluginBase::execute()
Feed::execute in core/modules/views/src/Plugin/views/display/Feed.php
Executes the view and returns data in the format required.
Feed::execute in core/modules/views/src/Plugin/views/display/Feed.php
Executes the view and returns data in the format required.
Page::execute in core/modules/views/src/Plugin/views/display/Page.php
Executes the view and returns data in the format required.
Page::execute in core/modules/views/src/Plugin/views/display/Page.php
Executes the view and returns data in the format required.
RestExport::execute in core/modules/rest/src/Plugin/views/display/RestExport.php
Executes the view and returns data in the format required.

... See full list

3 methods override PathPluginBase::execute()
Feed::execute in core/modules/views/src/Plugin/views/display/Feed.php
Executes the view and returns data in the format required.
Page::execute in core/modules/views/src/Plugin/views/display/Page.php
Executes the view and returns data in the format required.
RestExport::execute in core/modules/rest/src/Plugin/views/display/RestExport.php
Executes the view and returns data in the format required.

File

core/modules/views/src/Plugin/views/display/PathPluginBase.php, line 390

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();
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal