public function Database::__sleep in Search API 8
Implements the magic __sleep() method.
Prevents the database connection and logger from being serialized.
Overrides BackendPluginBase::__sleep
File
- modules/
search_api_db/ src/ Plugin/ search_api/ backend/ Database.php, line 2858
Class
- Database
- Indexes and searches items using the database.
Namespace
Drupal\search_api_db\Plugin\search_api\backendCode
public function __sleep() {
$properties = array_flip(parent::__sleep());
unset($properties['database']);
return array_keys($properties);
}