Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewExecutable.php

function 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 1758

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($old_view ?? FALSE);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal