public function BackendPluginBase::__wakeup in Search API 8
Implements the magic __wakeup() method.
Reloads the server entity.
Overrides DependencySerializationTrait::__wakeup
1 call to BackendPluginBase::__wakeup()
- Database::__wakeup in modules/
search_api_db/ src/ Plugin/ search_api/ backend/ Database.php - Implements the magic __wakeup() method.
1 method overrides BackendPluginBase::__wakeup()
- Database::__wakeup in modules/
search_api_db/ src/ Plugin/ search_api/ backend/ Database.php - Implements the magic __wakeup() method.
File
- src/
Backend/ BackendPluginBase.php, line 352
Class
- BackendPluginBase
- Defines a base class for backend plugins.
Namespace
Drupal\search_api\BackendCode
public function __wakeup() {
parent::__wakeup();
if ($this->serverId) {
$this->server = Server::load($this->serverId);
$this->serverId = NULL;
}
}