public function SearchIndex::__construct in Drupal 8
Same name and namespace in other branches
- 9 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\searchCode
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;
}