You are here

public function SolrConnectorPluginBase::getServerLink in Search API Solr 8.3

Same name and namespace in other branches
  1. 8 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerLink()
  2. 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getServerLink()
  3. 4.x 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 374

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getServerLink() {
  $url_path = $this
    ->getServerUri();
  $url = Url::fromUri($url_path);
  return Link::fromTextAndUrl($url_path, $url);
}