public function SolrConnectorPluginBase::getServerLink in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerLink()
- 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerLink()
- 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerLink()
Returns a link to the Solr server.
Return value
Overrides SolrConnectorInterface::getServerLink
1 call to SolrConnectorPluginBase::getServerLink()
- SolrConnectorPluginBase::validateConfigurationForm in src/
SolrConnector/ SolrConnectorPluginBase.php - Form validation handler.
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 340
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function getServerLink() {
$url_path = $this
->getServerUri();
$url = Url::fromUri($url_path);
return Link::fromTextAndUrl($url_path, $url);
}