class BuildSearchParamsEvent in Elasticsearch Connector 8.5
Same name and namespace in other branches
- 8.7 src/Event/BuildSearchParamsEvent.php \Drupal\elasticsearch_connector\Event\BuildSearchParamsEvent
- 8.6 src/Event/BuildSearchParamsEvent.php \Drupal\elasticsearch_connector\Event\BuildSearchParamsEvent
Class BuildSearchParamsEvent
@package Drupal\elasticsearch_connector\Event
Hierarchy
- class \Drupal\elasticsearch_connector\Event\BuildSearchParamsEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of BuildSearchParamsEvent
1 file declares its use of BuildSearchParamsEvent
- SearchBuilder.php in src/
ElasticSearch/ Parameters/ Builder/ SearchBuilder.php
File
- src/
Event/ BuildSearchParamsEvent.php, line 12
Namespace
Drupal\elasticsearch_connector\EventView source
class BuildSearchParamsEvent extends Event {
const BUILD_QUERY = 'elasticsearch_connector.build_searchparams';
protected $params;
protected $indexName;
/**
* BuildSearchParamsEvent constructor.
*
* @param $params
* @param $indexName
*/
public function __construct($params, $indexName) {
$this->params = $params;
$this->indexName = $indexName;
}
/**
* Getter for the params config array.
*
* @return params
*/
public function getElasticSearchParams() {
return $this->params;
}
/**
* Setter for the params config array.
*
* @param $params
*/
public function setElasticSearchParams($params) {
$this->params = $params;
}
/**
* Getter for the index name.
*
* @return indexName
*/
public function getIndexName() {
return $this->indexName;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BuildSearchParamsEvent:: |
protected | property | ||
BuildSearchParamsEvent:: |
protected | property | ||
BuildSearchParamsEvent:: |
constant | |||
BuildSearchParamsEvent:: |
public | function | Getter for the params config array. | |
BuildSearchParamsEvent:: |
public | function | Getter for the index name. | |
BuildSearchParamsEvent:: |
public | function | Setter for the params config array. | |
BuildSearchParamsEvent:: |
public | function | BuildSearchParamsEvent constructor. |