public function Extension::__wakeup in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\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;
}