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