You are here

public function ViewExecutable::postExecute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::postExecute()

Unset the current view, mostly.

2 calls to ViewExecutable::postExecute()
ViewExecutable::executeDisplay in core/modules/views/src/ViewExecutable.php
Execute the given display, with the given arguments. To be called externally by whatever mechanism invokes the view, such as a page callback, hook_block, etc.
ViewExecutable::preview in core/modules/views/src/ViewExecutable.php
Preview the given display, with the given arguments.

File

core/modules/views/src/ViewExecutable.php, line 1582
Contains \Drupal\views\ViewExecutable.

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function postExecute() {

  // unset current view so we can be properly destructed later on.
  // Return the previous value in case we're an attachment.
  if ($this->old_view) {
    $old_view = array_pop($this->old_view);
  }
  views_set_current_view(isset($old_view) ? $old_view : FALSE);
}