protected function InstantArticleRssEncoder::getLink in Facebook Instant Articles 8.2
Same name and namespace in other branches
- 3.x src/Encoder/InstantArticleRssEncoder.php \Drupal\fb_instant_articles\Encoder\InstantArticleRssEncoder::getLink()
Helper function to get the URL of the site for the RSS feed <link> tag.
Return value
string URL of the site.
1 call to InstantArticleRssEncoder::getLink()
- InstantArticleRssEncoder::encode in src/
Encoder/ InstantArticleRssEncoder.php - Encodes data into the given format.
File
- src/
Encoder/ InstantArticleRssEncoder.php, line 118
Class
- InstantArticleRssEncoder
- Facebook instant articles FBIA RSS encoder.
Namespace
Drupal\fb_instant_articles\EncoderCode
protected function getLink() {
if ($override = $this->config
->get('canonical_url_override')) {
return $override;
}
else {
return $this->currentRequest
->getSchemeAndHttpHost();
}
}