public function Webform::__wakeup in Little helpers 7
Deprecated
Serializing submission objects is not a good idea especially for long term storage.
File
- src/
Webform/ Webform.php, line 265
Class
Namespace
Drupal\little_helpers\WebformCode
public function __wakeup() {
if (!($node = node_load($this->nid))) {
throw new \UnexpectedValueException('Tried to __wakeup with non-existing node.');
}
$this
->__construct(\node_load($this->nid));
}