public function SolrConnectorInterface::getFile in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::getFile()
- 8 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::getFile()
- 8.2 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::getFile()
Retrieves a config file or file list from the Solr server.
Uses the admin/file request handler.
Parameters
string|null $file: (optional) The name of the file to retrieve. If the file is a directory, the directory contents are instead listed and returned. NULL represents the root config directory.
Return value
\Solarium\Core\Client\Response A Solarium response object containing either the file contents or a file list.
Throws
\Drupal\search_api_solr\SearchApiSolrException
1 method overrides SolrConnectorInterface::getFile()
- SolrConnectorPluginBase::getFile in src/
SolrConnector/ SolrConnectorPluginBase.php - Retrieves a config file or file list from the Solr server.
File
- src/
SolrConnectorInterface.php, line 547
Class
- SolrConnectorInterface
- The Solr connector interface.
Namespace
Drupal\search_api_solrCode
public function getFile($file = NULL);