PrepareSearchQueryEvent.php in Elasticsearch Connector 8.5
File
src/Event/PrepareSearchQueryEvent.php
View source
<?php
namespace Drupal\elasticsearch_connector\Event;
use Symfony\Component\EventDispatcher\Event;
class PrepareSearchQueryEvent extends Event {
const PREPARE_QUERY = 'elasticsearch_connector.prepare_searchquery';
protected $elasticSearchQuery;
protected $indexName;
public function __construct($elasticSearchQuery, $indexName) {
$this->elasticSearchQuery = $elasticSearchQuery;
$this->indexName = $indexName;
}
public function getElasticSearchQuery() {
return $this->elasticSearchQuery;
}
public function setElasticSearchQuery($elasticSearchQuery) {
$this->elasticSearchQuery = $elasticSearchQuery;
}
public function getIndexName() {
return $this->indexName;
}
}