Back to CoreButtonsTrait class

Method editHtml

public \Joomla\CMS\Toolbar\Button\StandardButton
editHtml
(string $task, string $text = 'JTOOLBAR_EDIT_HTML')
Writes a common 'editHtml' button.
Parameters
  • string $task The task name of this button.
  • string $text The text of this button.
Returns
  • \Joomla\CMS\Toolbar\Button\StandardButton
Since
  • 4.0.0

Method editHtml - Source code

/**
 * Writes a common 'editHtml' button.
 *
 * @param   string  $task  The task name of this button.
 * @param   string  $text  The text of this button.
 *
 * @return  StandardButton
 *
 * @since   4.0.0
 */
public function editHtml(string $task, string $text = 'JTOOLBAR_EDIT_HTML') : StandardButton
{
    return $this->standardButton('edithtml', $text)->task($task);
}