public function Query::__sleep in Search API 8
Implements the magic __sleep() method to avoid serializing the index.
File
- src/
Query/ Query.php, line 806
Class
- Query
- Provides a standard implementation for a Search API query.
Namespace
Drupal\search_api\QueryCode
public function __sleep() {
$this->indexId = $this->index
->id();
$keys = $this
->traitSleep();
return array_diff($keys, [
'index',
]);
}