public function Wizard::__sleep in Flexiform 8
Overrides ConfigEntityBase::__sleep
File
- contrib/
wizard/ src/ Entity/ Wizard.php, line 345
Class
- Wizard
- Defines a flexiform wizard entity class.
Namespace
Drupal\flexiform_wizard\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;
}