BuildSearchParamsEvent.php in Elasticsearch Connector 8.5
File
src/Event/BuildSearchParamsEvent.php
View source
<?php
namespace Drupal\elasticsearch_connector\Event;
use Symfony\Component\EventDispatcher\Event;
class BuildSearchParamsEvent extends Event {
const BUILD_QUERY = 'elasticsearch_connector.build_searchparams';
protected $params;
protected $indexName;
public function __construct($params, $indexName) {
$this->params = $params;
$this->indexName = $indexName;
}
public function getElasticSearchParams() {
return $this->params;
}
public function setElasticSearchParams($params) {
$this->params = $params;
}
public function getIndexName() {
return $this->indexName;
}
}