JToolBarHelper::unpublishList('controller_name.unpublish');
JToolBarHelper::unpublishList('controller_name.unpublish', 'TOOLTIP_MESSAGE');
JToolBarHelper::unpublishList('controller_name.unpublish', 'ICON_FILENAME', 'ICON_FILENAME_OVER');This code creates a button that unpublishes selected items in a list view and uses custom icon files for both normal and hover states. Overall, the JToolBarHelper unpublishList method is a useful tool for creating unpublishing buttons in Joomla! CMS list views. It is part of the joomla.cms.toolbar package library.