public function Database::setEventDispatcher in Search API 8
Sets the event dispatcher.
Parameters
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The new event dispatcher.
Return value
$this
File
- modules/
search_api_db/ src/ Plugin/ search_api/ backend/ Database.php, line 379
Class
- Database
- Indexes and searches items using the database.
Namespace
Drupal\search_api_db\Plugin\search_api\backendCode
public function setEventDispatcher(EventDispatcherInterface $event_dispatcher) {
$this->eventDispatcher = $event_dispatcher;
return $this;
}