elasticsearch_search_api-1.0.x-dev/src/Search/FacetedKeywordSearchAction.php

src/Search/FacetedKeywordSearchAction.php
<?php

namespace Drupal\elasticsearch_search_api\Search;

use Drupal\elasticsearch_search_api\Search\Facet\FacetCollection;

/**
 * Models the current faceted search action.
 */
class FacetedKeywordSearchAction extends FacetedSearchAction {

  /**
   * The keyword.
   *
   * @var string
   */
  protected $keyword;

  /**
   * FacetedKeywordSearchAction constructor.
   */
  public function __construct(int $size, string $keyword = NULL, FacetCollection $facetValues = NULL, array $availableFacets = []) {
    parent::__construct($size, $facetValues, $availableFacets);
    $this->keyword = $keyword;
  }

  /**
   * Get the keyword.
   *
   * @return string
   *   The keyword.
   */
  public function getKeyword() {
    return $this->keyword;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc