You are here

class BuildSearchParamsEvent in Elasticsearch Connector 8.6

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

Class BuildSearchParamsEvent

@package Drupal\elasticsearch_connector\Event

Hierarchy

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

Expanded class hierarchy of BuildSearchParamsEvent

1 file declares its use of BuildSearchParamsEvent
SearchBuilder.php in src/ElasticSearch/Parameters/Builder/SearchBuilder.php

File

src/Event/BuildSearchParamsEvent.php, line 12

Namespace

Drupal\elasticsearch_connector\Event
View source
class BuildSearchParamsEvent extends Event {
  const BUILD_QUERY = 'elasticsearch_connector.build_searchparams';
  protected $params;
  protected $indexName;

  /**
   * BuildSearchParamsEvent 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 getElasticSearchParams() {
    return $this->params;
  }

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
BuildSearchParamsEvent::$indexName protected property
BuildSearchParamsEvent::$params protected property
BuildSearchParamsEvent::BUILD_QUERY constant
BuildSearchParamsEvent::getElasticSearchParams public function Getter for the params config array.
BuildSearchParamsEvent::getIndexName public function Getter for the index name.
BuildSearchParamsEvent::setElasticSearchParams public function Setter for the params config array.
BuildSearchParamsEvent::__construct public function BuildSearchParamsEvent constructor.