function SearchIndex::__construct

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

SearchIndex constructor.

Parameters

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

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

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

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

File

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

Class

SearchIndex
Provides search index management functions.

Namespace

Drupal\search

Code

public function __construct(ConfigFactoryInterface $config_factory, Connection $connection, Connection $replica, CacheTagsInvalidatorInterface $cache_tags_invalidator) {
    $this->configFactory = $config_factory;
    $this->connection = $connection;
    $this->replica = $replica;
    $this->cacheTagsInvalidator = $cache_tags_invalidator;
}

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