public function SolrConnectorPluginBase::getCoreLink in Search API Solr 8
Same name and namespace in other branches
- 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getCoreLink()
- 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getCoreLink()
- 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getCoreLink()
Returns a link to the Solr core, if the necessary options are set.
Return value
Overrides SolrConnectorInterface::getCoreLink
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 361
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function getCoreLink() {
$url_path = $this
->getServerUri() . '#/' . $this->configuration['core'];
$url = Url::fromUri($url_path);
return Link::fromTextAndUrl($url_path, $url);
}