Back to CustomButton class

Method fetchButton

public string
fetchButton
(mixed $type = 'Custom', mixed $html = '', mixed $id = 'custom')
Fetch the HTML for the button
Parameters
  • string $type Button type, unused string.
  • string $html HTML string for the button
  • string $id CSS id for the button
Returns
  • string HTML string for the button
Since
  • 3.0
Deprecated
  • 5.0
Class: CustomButton
Project: Joomla

Method fetchButton - Source code

/**
 * Fetch the HTML for the button
 *
 * @param   string  $type  Button type, unused string.
 * @param   string  $html  HTML string for the button
 * @param   string  $id    CSS id for the button
 *
 * @return  string   HTML string for the button
 *
 * @since   3.0
 *
 * @deprecated  5.0 Use render() instead.
 */
public function fetchButton($type = 'Custom', $html = '', $id = 'custom')
{
    return $html;
}