Created
August 15, 2016 20:53
-
-
Save Kloport/8cf0887bc1b7f3a819866b313108625e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Drupal\Core\Url; | |
$url = Url::fromUri('http://www.example.com/'); | |
$external_link = \Drupal::l(t('External link'), $url); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment