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