public function PathPluginBase::execute in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/display/PathPluginBase.php \Drupal\views\Plugin\views\display\PathPluginBase::execute()
 
Executes the view and returns data in the format required.
The base class cannot be executed.
Overrides DisplayPluginBase::execute
3 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.
 - 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.
 
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 387  
Class
- PathPluginBase
 - The base display plugin for path/callbacks. This is used for pages and feeds.
 
Namespace
Drupal\views\Plugin\views\displayCode
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();
  }
}