ViewExecutable::postExecute

public ViewExecutable::postExecute()

Unsets the current view, mostly.

File

core/modules/views/src/ViewExecutable.php, line 1685

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

1
2
3
4
5
6
7
8
9
10
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);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.