You are here

class PrepareIndexMappingEvent in Elasticsearch Connector 8.5

Same name and namespace in other branches
  1. 8.7 src/Event/PrepareIndexMappingEvent.php \Drupal\elasticsearch_connector\Event\PrepareIndexMappingEvent
  2. 8.6 src/Event/PrepareIndexMappingEvent.php \Drupal\elasticsearch_connector\Event\PrepareIndexMappingEvent

Class PrepareIndexMappingEvent

@package Drupal\elasticsearch_connector\Event

Hierarchy

Expanded class hierarchy of PrepareIndexMappingEvent

1 file declares its use of PrepareIndexMappingEvent
IndexFactory.php in src/ElasticSearch/Parameters/Factory/IndexFactory.php

File

src/Event/PrepareIndexMappingEvent.php, line 12

Namespace

Drupal\elasticsearch_connector\Event
View source
class PrepareIndexMappingEvent extends Event {
  const PREPARE_INDEX_MAPPING = 'elasticsearch_connector.prepare_index_mapping';
  protected $indexMappingParams;
  protected $indexName;

  /**
   * PrepareIndexMappingEvent constructor.
   *
   * @param $indexMappingParams
   * @param $indexName
   */
  public function __construct($indexMappingParams, $indexName) {
    $this->indexMappingParams = $indexMappingParams;
    $this->indexName = $indexName;
  }

  /**
   * Getter for the index params array.
   *
   * @return indexMappingParams
   */
  public function getIndexMappingParams() {
    return $this->indexMappingParams;
  }

  /**
   * Setter for the index params array.
   *
   * @param $indexMappingParams
   */
  public function setIndexMappingParams($indexMappingParams) {
    $this->indexMappingParams = $indexMappingParams;
  }

  /**
   * Getter for the index name.
   *
   * @return indexName
   */
  public function getIndexName() {
    return $this->indexName;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PrepareIndexMappingEvent::$indexMappingParams protected property
PrepareIndexMappingEvent::$indexName protected property
PrepareIndexMappingEvent::getIndexMappingParams public function Getter for the index params array.
PrepareIndexMappingEvent::getIndexName public function Getter for the index name.
PrepareIndexMappingEvent::PREPARE_INDEX_MAPPING constant
PrepareIndexMappingEvent::setIndexMappingParams public function Setter for the index params array.
PrepareIndexMappingEvent::__construct public function PrepareIndexMappingEvent constructor.