You are here

public function SolrConnectorInterface::getFile in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::getFile()
  2. 8 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::getFile()
  3. 4.x 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.

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 394

Class

SolrConnectorInterface

Namespace

Drupal\search_api_solr

Code

public function getFile($file = NULL);