class BuildIndexParamsEvent in Elasticsearch Connector 8.6
Same name and namespace in other branches
- 8.7 src/Event/BuildIndexParamsEvent.php \Drupal\elasticsearch_connector\Event\BuildIndexParamsEvent
Class BuildIndexParamsEvent
@package Drupal\elasticsearch_connector\Event
Hierarchy
- class \Drupal\elasticsearch_connector\Event\BuildIndexParamsEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of BuildIndexParamsEvent
1 file declares its use of BuildIndexParamsEvent
- IndexFactory.php in src/
ElasticSearch/ Parameters/ Factory/ IndexFactory.php
File
- src/
Event/ BuildIndexParamsEvent.php, line 12
Namespace
Drupal\elasticsearch_connector\EventView source
class BuildIndexParamsEvent extends Event {
const BUILD_PARAMS = 'elasticsearch_connector.build_indexparams';
protected $params;
protected $indexName;
/**
* BuildIndexParamsEvent 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 getElasticIndexParams() {
return $this->params;
}
/**
* Setter for the params config array.
*
* @param $params
*/
public function setElasticIndexParams($params) {
$this->params = $params;
}
/**
* Getter for the index name.
*
* @return indexName
*/
public function getIndexName() {
return $this->indexName;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BuildIndexParamsEvent:: |
protected | property | ||
BuildIndexParamsEvent:: |
protected | property | ||
BuildIndexParamsEvent:: |
constant | |||
BuildIndexParamsEvent:: |
public | function | Getter for the params config array. | |
BuildIndexParamsEvent:: |
public | function | Getter for the index name. | |
BuildIndexParamsEvent:: |
public | function | Setter for the params config array. | |
BuildIndexParamsEvent:: |
public | function | BuildIndexParamsEvent constructor. |