SolrCacheController.php in Search API Solr 8.3
Same filename and directory in other branches
Namespace
Drupal\search_api_solr\ControllerFile
src/Controller/SolrCacheController.phpView source
<?php
namespace Drupal\search_api_solr\Controller;
use Drupal\search_api\ServerInterface;
use Drupal\search_api_solr\SolrConfigInterface;
/**
* Provides different listings of SolrCache.
*/
class SolrCacheController extends AbstractSolrEntityController {
/**
* Entity type id.
*
* @var string
*/
protected $entityTypeId = 'solr_cache';
/**
* Disables a Solr Entity on this server.
*
* @param \Drupal\search_api\ServerInterface $search_api_server
* Search API server.
* @param \Drupal\search_api_solr\SolrConfigInterface $solr_cache
* Solr cache.
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse
* Redirect response.
*
* @throws \Drupal\Core\Entity\EntityStorageException
*/
public function disableOnServer(ServerInterface $search_api_server, SolrConfigInterface $solr_cache) {
return parent::disableOnServer($search_api_server, $solr_cache);
}
/**
* Enables a Solr Entity on this server.
*
* @param \Drupal\search_api\ServerInterface $search_api_server
* Search API server.
* @param \Drupal\search_api_solr\SolrConfigInterface $solr_cache
* Solr cache.
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse
* Redirect response.
*
* @throws \Drupal\Core\Entity\EntityStorageException
*/
public function enableOnServer(ServerInterface $search_api_server, SolrConfigInterface $solr_cache) {
return parent::enableOnServer($search_api_server, $solr_cache);
}
}
Classes
Name | Description |
---|---|
SolrCacheController | Provides different listings of SolrCache. |