function SearchTextProcessor::__construct

Same name and namespace in other branches
  1. 9 core/modules/search/src/SearchTextProcessor.php \Drupal\search\SearchTextProcessor::__construct()
  2. 10 core/modules/search/src/SearchTextProcessor.php \Drupal\search\SearchTextProcessor::__construct()

SearchTextProcessor constructor.

Parameters

\Drupal\Component\Transliteration\TransliterationInterface $transliteration: The transliteration service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

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

File

core/modules/search/src/SearchTextProcessor.php, line 47

Class

SearchTextProcessor
Processes search text for indexing.

Namespace

Drupal\search

Code

public function __construct(TransliterationInterface $transliteration, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) {
    $this->transliteration = $transliteration;
    $this->configFactory = $config_factory;
    $this->moduleHandler = $module_handler;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.