Back to ToolbarHelper class

Method link

public static void
(mixed $url, mixed $text, mixed $name = 'link')
Creates a button to redirect to a link
Parameters
  • string $url The link url
  • string $text Button text
  • string $name Name to be used as apart of the id
Returns
  • void
Since
  • 3.5
Class: ToolbarHelper
Project: Joomla

Method link - Source code

/**
 * Creates a button to redirect to a link
 *
 * @param   string  $url   The link url
 * @param   string  $text  Button text
 * @param   string  $name  Name to be used as apart of the id
 *
 * @return  void
 *
 * @since   3.5
 */
public static function link($url, $text, $name = 'link')
{
    $bar = Toolbar::getInstance('toolbar');
    $bar->appendButton('Link', $name, $text, $url);
}