PrepareIndexMappingEvent.php in Elasticsearch Connector 8.5
File
src/Event/PrepareIndexMappingEvent.php
View source
<?php
namespace Drupal\elasticsearch_connector\Event;
use Symfony\Component\EventDispatcher\Event;
class PrepareIndexMappingEvent extends Event {
const PREPARE_INDEX_MAPPING = 'elasticsearch_connector.prepare_index_mapping';
protected $indexMappingParams;
protected $indexName;
public function __construct($indexMappingParams, $indexName) {
$this->indexMappingParams = $indexMappingParams;
$this->indexName = $indexName;
}
public function getIndexMappingParams() {
return $this->indexMappingParams;
}
public function setIndexMappingParams($indexMappingParams) {
$this->indexMappingParams = $indexMappingParams;
}
public function getIndexName() {
return $this->indexName;
}
}