class PrepareMappingEvent in Elasticsearch Connector 8.6
Same name and namespace in other branches
- 8.7 src/Event/PrepareMappingEvent.php \Drupal\elasticsearch_connector\Event\PrepareMappingEvent
- 8.5 src/Event/PrepareMappingEvent.php \Drupal\elasticsearch_connector\Event\PrepareMappingEvent
Class PrepareMappingEvent
@package Drupal\elasticsearch_connector\Event
Hierarchy
- class \Drupal\elasticsearch_connector\Event\PrepareMappingEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of PrepareMappingEvent
1 file declares its use of PrepareMappingEvent
- MappingFactory.php in src/ElasticSearch/ Parameters/ Factory/ MappingFactory.php 
File
- src/Event/ PrepareMappingEvent.php, line 12 
Namespace
Drupal\elasticsearch_connector\EventView source
class PrepareMappingEvent extends Event {
  const PREPARE_MAPPING = 'elasticsearch_connector.prepare_mapping';
  protected $mappingConfig;
  protected $type;
  protected $field;
  /**
   * PrepareMappingEvent constructor.
   *
   * @param $mappingConfig
   * @param $type
   * @param $field
   */
  public function __construct($mappingConfig, $type, $field) {
    $this->mappingConfig = $mappingConfig;
    $this->type = $type;
    $this->field = $field;
  }
  /**
   * Getter for the mapping config array.
   *
   * @return mappingConfig
   */
  public function getMappingConfig() {
    return $this->mappingConfig;
  }
  /**
   * Setter for the mapping config array.
   *
   * @param $mappingConfig
   */
  public function setMappingConfig($mappingConfig) {
    $this->mappingConfig = $mappingConfig;
  }
  /**
   * Getter for the mapping type.
   *
   * @return type
   */
  public function getMappingType() {
    return $this->type;
  }
  /**
   * Getter for the field.
   *
   * @return field
   */
  public function getMappingField() {
    return $this->field;
  }
}Members
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| PrepareMappingEvent:: | protected | property | ||
| PrepareMappingEvent:: | protected | property | ||
| PrepareMappingEvent:: | protected | property | ||
| PrepareMappingEvent:: | public | function | Getter for the mapping config array. | |
| PrepareMappingEvent:: | public | function | Getter for the field. | |
| PrepareMappingEvent:: | public | function | Getter for the mapping type. | |
| PrepareMappingEvent:: | constant | |||
| PrepareMappingEvent:: | public | function | Setter for the mapping config array. | |
| PrepareMappingEvent:: | public | function | PrepareMappingEvent constructor. | 
