Last active
December 10, 2015 12:58
-
-
Save jibran/4437285 to your computer and use it in GitHub Desktop.
Link object same as http://api.drupal.org/api/drupal/core%21includes%21common.inc/function/l/8
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
<?php | |
$link = new Link(); | |
$link->text = 'foo'; | |
$link->path = 'bar'; | |
$link->attributes = new Attribute(); | |
$link->language = LANGUAGE_NONE; | |
$link->html = TRUE; | |
$link->query = array('foo' => 'bar'); | |
$link->fragment => 'foo-bar'; | |
$link->absolute' => FALSE; | |
$link->alias => FALSE; | |
$link->prefix => ''; | |
print $link; //<a href="/bar?foo=bar#foo-bar">foo</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment