public function Query::setEventDispatcher in Search API 8
Sets the event dispatcher.
Parameters
\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $event_dispatcher: The new event dispatcher.
Return value
$this
File
- src/
Query/ Query.php, line 274
Class
- Query
- Provides a standard implementation for a Search API query.
Namespace
Drupal\search_api\QueryCode
public function setEventDispatcher(ContainerAwareEventDispatcher $event_dispatcher) {
$this->eventDispatcher = $event_dispatcher;
return $this;
}