function Extension::__wakeup
Magic method implementation to unserialize the extension object.
File
-
core/
lib/ Drupal/ Core/ Extension/ Extension.php, line 184
Class
- Extension
- Defines an extension (file) object.
Namespace
Drupal\Core\ExtensionCode
public function __wakeup() {
// Get the app root from the container.
$this->root = \Drupal::hasService('app.root') ? \Drupal::root() : DRUPAL_ROOT;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.