You are here

class PrepareSearchQueryEvent in Elasticsearch Connector 8.5

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

Class PrepareSearchQueryEvent

@package Drupal\elasticsearch_connector\Event

Hierarchy

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

Expanded class hierarchy of PrepareSearchQueryEvent

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

File

src/Event/PrepareSearchQueryEvent.php, line 12

Namespace

Drupal\elasticsearch_connector\Event
View source
class PrepareSearchQueryEvent extends Event {
  const PREPARE_QUERY = 'elasticsearch_connector.prepare_searchquery';
  protected $elasticSearchQuery;
  protected $indexName;

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

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
PrepareSearchQueryEvent::$elasticSearchQuery protected property
PrepareSearchQueryEvent::$indexName protected property
PrepareSearchQueryEvent::getElasticSearchQuery public function Getter for the elasticSearchQuery config array.
PrepareSearchQueryEvent::getIndexName public function Getter for the index name.
PrepareSearchQueryEvent::PREPARE_QUERY constant
PrepareSearchQueryEvent::setElasticSearchQuery public function Setter for the elasticSearchQuery config array.
PrepareSearchQueryEvent::__construct public function PrepareSearchQueryEvent constructor.