function _sl in ShURLy 8
Same name and namespace in other branches
- 6 shurly.module \_sl()
- 7 shurly.module \_sl()
Internal function to generate a link without language prefixing or subdomain rewrites
1 call to _sl()
- ShurlyShortUrl::render in src/
Plugin/ views/ field/ ShurlyShortUrl.php - Renders the field.
File
- ./
shurly.module, line 631 - Description http://www.youtube.com/watch?v=Qo7qoonzTCE.
Code
function _sl($text, $path, $options = []) {
$shurly_base = _shurly_get_shurly_base();
return Link::fromTextAndUrl($text, Url::fromUri($shurly_base . '/' . $path, $options))
->toString();
}