public function DependencySerializationTrait::__wakeup in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php \Drupal\Core\DependencyInjection\DependencySerializationTrait::__wakeup()
2 calls to DependencySerializationTrait::__wakeup()
- ForumManager::__wakeup in core/
modules/ forum/ src/ ForumManager.php - TermStorage::__wakeup in core/
modules/ taxonomy/ src/ TermStorage.php
2 methods override DependencySerializationTrait::__wakeup()
- EntityDisplayBase::__wakeup in core/
lib/ Drupal/ Core/ Entity/ EntityDisplayBase.php - TermStorage::__wakeup in core/
modules/ taxonomy/ src/ TermStorage.php
File
- core/
lib/ Drupal/ Core/ DependencyInjection/ DependencySerializationTrait.php, line 51 - Contains \Drupal\Core\DependencyInjection\DependencySerializationTrait.
Class
- DependencySerializationTrait
- Provides dependency injection friendly methods for serialization.
Namespace
Drupal\Core\DependencyInjectionCode
public function __wakeup() {
$container = \Drupal::getContainer();
foreach ($this->_serviceIds as $key => $service_id) {
$this->{$key} = $container
->get($service_id);
}
$this->_serviceIds = array();
}