public function SolrFieldManager::__construct in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 src/SolrFieldManager.php \Drupal\search_api_solr\SolrFieldManager::__construct()
- 4.x src/SolrFieldManager.php \Drupal\search_api_solr\SolrFieldManager::__construct()
Constructs a new SorFieldManager.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Psr\Log\LoggerInterface $logger: Logger for Search API.
Throws
\Drupal\Component\Plugin\Exception\PluginNotFoundException
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
File
- src/
SolrFieldManager.php, line 52
Class
- SolrFieldManager
- Manages the discovery of Solr fields.
Namespace
Drupal\search_api_solrCode
public function __construct(CacheBackendInterface $cache_backend, EntityTypeManagerInterface $entityTypeManager, LoggerInterface $logger) {
$this->cacheBackend = $cache_backend;
$this->serverStorage = $entityTypeManager
->getStorage('search_api_server');
$this
->setLogger($logger);
}