Returns links to the current page, with and without query strings.
Using #theme causes these links to be rendered with theme_link().
public function themeLinkActiveClass() {
return array(
'no_query' => array(
'#theme' => 'link',
'#text' => t('Link with no query string'),
'#path' => current_path(),
),
'with_query' => array(
'#theme' => 'link',
'#text' => t('Link with a query string'),
'#path' => current_path(),
'#options' => array(
'query' => array(
'foo' => 'bar',
'one' => 'two',
),
),
),
'with_query_reversed' => array(
'#theme' => 'link',
'#text' => t('Link with the same query string in reverse order'),
'#path' => current_path(),
'#options' => array(
'query' => array(
'one' => 'two',
'foo' => 'bar',
),
),
),
);
}