Create a link with Drupal 8 like l() and url() on D7 | Drupal 8