public function SolrConnectorPluginBase::getServerLink in Search API Solr 4.x
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()
- 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerLink()
Returns a link to the Solr server.
Return value
\Drupal\Core\Link The link object to the Solr server.
Overrides SolrConnectorInterface::getServerLink
1 call to SolrConnectorPluginBase::getServerLink()
- SolrConnectorPluginBase::validateConfigurationForm in src/
SolrConnector/ SolrConnectorPluginBase.php - Form validation handler.
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 393
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);
}