You are here

public function ViewExecutable::serialize in Zircon Profile 8

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

File

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

Class

ViewExecutable
Represents a view as a whole.

Namespace

Drupal\views

Code

public function serialize() {
  return serialize([
    // Only serialize the storage entity ID.
    $this->storage
      ->id(),
    $this->current_display,
    $this->args,
    $this->current_page,
    $this->exposed_input,
    $this->exposed_raw_input,
    $this->exposed_data,
    $this->dom_id,
    $this->executed,
  ]);
}