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