You are here

public function QueryHelper::__construct in Search API 8

Constructs a QueryHelper object.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

\Drupal\search_api\ParseMode\ParseModePluginManager $parseModeManager: The parse mode manager.

File

src/Utility/QueryHelper.php, line 62

Class

QueryHelper
Provides methods for creating search queries and statically caching results.

Namespace

Drupal\search_api\Utility

Code

public function __construct(RequestStack $requestStack, ModuleHandlerInterface $moduleHandler, ParseModePluginManager $parseModeManager) {
  $this->requestStack = $requestStack;
  $this->moduleHandler = $moduleHandler;
  $this->parseModeManager = $parseModeManager;
  $this->results = new \SplObjectStorage();
  $this->null = (object) [];
}