Drupal l() and url() methods
Submitted by amitsedai on Tue, 10/28/2014 - 12:23Technologies:
Both l and url methods are handy to create urls for various entities. However, the variety of options available makes the usage exciting and complex.
l(): Formats an internal or external URL link as an HTML anchor tag.
Syntax: l($text, $path, array $options = array())
Creating an absolute URL using l(). The example below creates a node link.