Back to BasicButton class

Method fetchButton

public void
fetchButton
(mixed $type = 'Basic')
Fetch the HTML for the button
Parameters
  • string $type Unused string.
Returns
  • void
Since
  • 3.0
Deprecated
  • 5.0
-
  • \LogicException
Class: BasicButton
Project: Joomla

Method fetchButton - Source code

/**
 * Fetch the HTML for the button
 *
 * @param   string  $type  Unused string.
 *
 * @return  void
 *
 * @since   3.0
 *
 * @deprecated  5.0 Use render() instead.
 * @throws  \LogicException
 */
public function fetchButton($type = 'Basic')
{
    throw new \LogicException('This is a new button in 4.0, please use render() instead.');
}