You are here

private function HtmlAssetInliner::getFullUrl in TMGMT Translator Smartling 8

Converts relative URLs to absolute URLs

Parameters

$url:

Return value

bool|string

2 calls to HtmlAssetInliner::getFullUrl()
HtmlAssetInliner::convertImageToDataUri in src/Context/HtmlAssetInliner.php
Converts images to data URIs
HtmlAssetInliner::toAbsoluteURLs in src/Context/HtmlAssetInliner.php
Converts relative <a> tag paths to absolute paths

File

src/Context/HtmlAssetInliner.php, line 391

Class

HtmlAssetInliner

Namespace

Drupal\tmgmt_smartling\Context

Code

private function getFullUrl($url) {
  if (strpos($url, '//') === FALSE) {
    return url_to_absolute($this->url, $url);
  }
  return $url;
}