Back to ToolbarHelper class

Method editHtml

public static void
editHtml
(mixed $task = 'edit_source', mixed $alt = 'JTOOLBAR_EDIT_HTML')
Writes a common 'edit' button for a template html.
Parameters
  • string $task An override for the task.
  • string $alt An override for the alt text.
Returns
  • void
Since
  • 1.5
Class: ToolbarHelper
Project: Joomla

Method editHtml - Source code

/**
 * Writes a common 'edit' button for a template html.
 *
 * @param   string  $task  An override for the task.
 * @param   string  $alt   An override for the alt text.
 *
 * @return  void
 *
 * @since   1.5
 */
public static function editHtml($task = 'edit_source', $alt = 'JTOOLBAR_EDIT_HTML')
{
    $bar = Toolbar::getInstance('toolbar');
    // Add an edit html button.
    $bar->appendButton('Standard', 'edithtml', $alt, $task, true);
}