You are here

public function BasicAuthTestSolrConnector::executeRequest in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 tests/modules/search_api_solr_test/src/Plugin/SolrConnector/BasicAuthTestSolrConnector.php \Drupal\search_api_solr_test\Plugin\SolrConnector\BasicAuthTestSolrConnector::executeRequest()

Executes a request and returns the response.

Parameters

\Solarium\Core\Client\Request $request: The Solarium request object.

\Solarium\Core\Client\Endpoint|null $endpoint: (optional) The Solarium endpoint object.

Return value

\Solarium\Core\Client\Response The Solarium response object.

Throws

\Drupal\search_api_solr\SearchApiSolrException

Overrides SolrConnectorPluginBase::executeRequest

File

tests/modules/search_api_solr_test/src/Plugin/SolrConnector/BasicAuthTestSolrConnector.php, line 62

Class

BasicAuthTestSolrConnector
Basic auth Solr test connector.

Namespace

Drupal\search_api_solr_test\Plugin\SolrConnector

Code

public function executeRequest(Request $request, Endpoint $endpoint = NULL) {
  self::$request = $request;
  if ($this->intercept) {
    return new Response('');
  }
  return parent::executeRequest($request, $endpoint);
}