You are here

class BuildIndexParamsEvent in Elasticsearch Connector 8.7

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

Class BuildIndexParamsEvent

@package Drupal\elasticsearch_connector\Event

Hierarchy

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

Expanded class hierarchy of BuildIndexParamsEvent

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

File

src/Event/BuildIndexParamsEvent.php, line 12

Namespace

Drupal\elasticsearch_connector\Event
View source
class BuildIndexParamsEvent extends Event {
  const BUILD_PARAMS = 'elasticsearch_connector.build_indexparams';
  protected $params;
  protected $indexName;

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

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
BuildIndexParamsEvent::$indexName protected property
BuildIndexParamsEvent::$params protected property
BuildIndexParamsEvent::BUILD_PARAMS constant
BuildIndexParamsEvent::getElasticIndexParams public function Getter for the params config array.
BuildIndexParamsEvent::getIndexName public function Getter for the index name.
BuildIndexParamsEvent::setElasticIndexParams public function Setter for the params config array.
BuildIndexParamsEvent::__construct public function BuildIndexParamsEvent constructor.