function ViewExecutable::postExecute
Same name in other branches
- 9 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::postExecute()
- 10 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::postExecute()
- 11.x 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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.