⇦ Back to CoreButtonsTrait classMethod customHtml
public \Joomla\CMS\Toolbar\Button\CustomButton
customHtml
(string $html, string $name = 'custom')
Writes a custom HTML to toolbar.
Parameters
- string $html The HTML string to write.
- string $name The button name.
Returns
- \Joomla\CMS\Toolbar\Button\CustomButton
Since
Method customHtml - Source code
/**
* Writes a custom HTML to toolbar.
*
* @param string $html The HTML string to write.
* @param string $name The button name.
*
* @return CustomButton
*
* @since 4.0.0
*/
public function customHtml(string $html, string $name = 'custom') : CustomButton
{
return $this->customButton($name)->html($html);
}