PrepareIndexEvent.php in Elasticsearch Connector 8.5
File
src/Event/PrepareIndexEvent.php
View source
<?php
namespace Drupal\elasticsearch_connector\Event;
use Symfony\Component\EventDispatcher\Event;
class PrepareIndexEvent extends Event {
const PREPARE_INDEX = 'elasticsearch_connector.prepare_index';
protected $indexConfig;
protected $indexName;
public function __construct($indexConfig, $indexName) {
$this->indexConfig = $indexConfig;
$this->indexName = $indexName;
}
public function getIndexConfig() {
return $this->indexConfig;
}
public function setIndexConfig($indexConfig) {
$this->indexConfig = $indexConfig;
}
public function getIndexName() {
return $this->indexName;
}
}