You are here

class PrepareMappingEvent in Elasticsearch Connector 8.5

Same name and namespace in other branches
  1. 8.7 src/Event/PrepareMappingEvent.php \Drupal\elasticsearch_connector\Event\PrepareMappingEvent
  2. 8.6 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\Event
View 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

Namesort descending Modifiers Type Description Overrides
PrepareMappingEvent::$field protected property
PrepareMappingEvent::$mappingConfig protected property
PrepareMappingEvent::$type protected property
PrepareMappingEvent::getMappingConfig public function Getter for the mapping config array.
PrepareMappingEvent::getMappingField public function Getter for the field.
PrepareMappingEvent::getMappingType public function Getter for the mapping type.
PrepareMappingEvent::PREPARE_MAPPING constant
PrepareMappingEvent::setMappingConfig public function Setter for the mapping config array.
PrepareMappingEvent::__construct public function PrepareMappingEvent constructor.