function View::__sleep

Same name in other branches
  1. 9 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::__sleep()
  2. 10 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::__sleep()
  3. 11.x core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::__sleep()

Overrides ConfigEntityBase::__sleep

File

core/modules/views/src/Entity/View.php, line 508

Class

View
Defines a View configuration entity class.

Namespace

Drupal\views\Entity

Code

public function __sleep() {
    $keys = parent::__sleep();
    unset($keys[array_search('executable', $keys)]);
    return $keys;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.