function SearchIndex::__construct

Same name in other branches
  1. 9 core/modules/search/src/SearchIndex.php \Drupal\search\SearchIndex::__construct()
  2. 8.9.x core/modules/search/src/SearchIndex.php \Drupal\search\SearchIndex::__construct()
  3. 10 core/modules/search/src/SearchIndex.php \Drupal\search\SearchIndex::__construct()

SearchIndex constructor.

Parameters

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

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Database\Connection $replica: The database replica connection.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cacheTagsInvalidator: The cache tags invalidator.

\Drupal\search\SearchTextProcessorInterface $textProcessor: The text processor.

\Drupal\Component\Datetime\TimeInterface $time: The time service

File

core/modules/search/src/SearchIndex.php, line 32

Class

SearchIndex
Provides search index management functions.

Namespace

Drupal\search

Code

public function __construct(ConfigFactoryInterface $configFactory, Connection $connection, Connection $replica, CacheTagsInvalidatorInterface $cacheTagsInvalidator, SearchTextProcessorInterface $textProcessor, TimeInterface $time) {
}

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