public function ViewExecutable::postExecute in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::postExecute()
Unsets the current view, mostly.
2 calls to ViewExecutable::postExecute()
- ViewExecutable::executeDisplay in core/
modules/ views/ src/ ViewExecutable.php - Executes the given display, with the given arguments.
- ViewExecutable::preview in core/
modules/ views/ src/ ViewExecutable.php - Previews the given display, with the given arguments.
File
- core/
modules/ views/ src/ ViewExecutable.php, line 1698
Class
- ViewExecutable
- Represents a view as a whole.
Namespace
Drupal\viewsCode
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);
}