You are here

class PrepareIndexEvent in Elasticsearch Connector 8.5

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

Class PrepareIndexEvent

@package Drupal\elasticsearch_connector\Event

Hierarchy

  • class \Drupal\elasticsearch_connector\Event\PrepareIndexEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of PrepareIndexEvent

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

File

src/Event/PrepareIndexEvent.php, line 12

Namespace

Drupal\elasticsearch_connector\Event
View source
class PrepareIndexEvent extends Event {
  const PREPARE_INDEX = 'elasticsearch_connector.prepare_index';
  protected $indexConfig;
  protected $indexName;

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

  /**
   * Getter for the index config array.
   *
   * @return indexConfig
   */
  public function getIndexConfig() {
    return $this->indexConfig;
  }

  /**
   * Setter for the index config array.
   *
   * @param $indexConfig
   */
  public function setIndexConfig($indexConfig) {
    $this->indexConfig = $indexConfig;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
PrepareIndexEvent::$indexConfig protected property
PrepareIndexEvent::$indexName protected property
PrepareIndexEvent::getIndexConfig public function Getter for the index config array.
PrepareIndexEvent::getIndexName public function Getter for the index name.
PrepareIndexEvent::PREPARE_INDEX constant
PrepareIndexEvent::setIndexConfig public function Setter for the index config array.
PrepareIndexEvent::__construct public function PrepareIndexEvent constructor.