PrepareMappingEvent.php in Elasticsearch Connector 8.5
File
src/Event/PrepareMappingEvent.php
View source
<?php
namespace Drupal\elasticsearch_connector\Event;
use Symfony\Component\EventDispatcher\Event;
class PrepareMappingEvent extends Event {
const PREPARE_MAPPING = 'elasticsearch_connector.prepare_mapping';
protected $mappingConfig;
protected $type;
protected $field;
public function __construct($mappingConfig, $type, $field) {
$this->mappingConfig = $mappingConfig;
$this->type = $type;
$this->field = $field;
}
public function getMappingConfig() {
return $this->mappingConfig;
}
public function setMappingConfig($mappingConfig) {
$this->mappingConfig = $mappingConfig;
}
public function getMappingType() {
return $this->type;
}
public function getMappingField() {
return $this->field;
}
}