public function Page::__sleep in Page Manager 8.4
Same name and namespace in other branches
- 8 src/Entity/Page.php \Drupal\page_manager\Entity\Page::__sleep()
 
Overrides ConfigEntityBase::__sleep
File
- src/
Entity/ Page.php, line 462  
Class
- Page
 - Defines a Page entity class.
 
Namespace
Drupal\page_manager\EntityCode
public function __sleep() {
  $vars = parent::__sleep();
  // Gathered contexts objects should not be serialized.
  if (($key = array_search('contexts', $vars)) !== FALSE) {
    unset($vars[$key]);
  }
  return $vars;
}