Back to Links class

Method links

public static string
(mixed $links)
Method to generate html code for a list of links
Parameters
  • array $links Array of links
Returns
  • string
Since
  • 3.2
Class: Links
Project: Joomla

Method links - Source code

/**
 * Method to generate html code for a list of links
 *
 * @param   array  $links  Array of links
 *
 * @return  string
 *
 * @since   3.2
 */
public static function links($links)
{
    $html = array();
    foreach ($links as $link) {
        $html[] = HTMLHelper::_('links.link', $link);
    }
    return implode($html);
}