You are here

public function View::__sleep in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::__sleep()
  2. 9 core/modules/views/src/Entity/View.php \Drupal\views\Entity\View::__sleep()

Overrides ConfigEntityBase::__sleep

File

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

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;
}