public function Feed::execute

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

Overrides PathPluginBase::execute

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php, line 68
Contains Drupal\views\Plugin\views\display\Feed.

Class

Feed
The plugin that handles a feed, such as RSS or atom.

Namespace

Drupal\views\Plugin\views\display

Code

public function execute() {
  parent::execute();
  $output = $this->view
    ->render();
  if (empty($output)) {
    throw new NotFoundHttpException();
  }
  $response = $this->view
    ->getResponse();
  $response
    ->setContent($output);
  return $response;
}