JToolBarHelper::makeDefault('mytoolbarbutton', 'label', 'My Button Label');
JToolBarHelper::makeDefault('mytoolbarbutton', 'icon', 'icon-32-save');
JToolBarHelper::makeDefault('mytoolbarbutton', 'link', 'index.php?option=com_mycomponent&view=myview');This code sets the default link for a toolbar button with the ID 'mytoolbarbutton' to the URL 'index.php?option=com_mycomponent&view=myview'. JToolBarHelper is part of the Joomla! Framework's library for creating component views and menus.