Back to CoreButtonsTrait class

Method archive

public \Joomla\CMS\Toolbar\Button\StandardButton
archive
(string $task, string $text = 'JTOOLBAR_ARCHIVE')
Writes a common 'archive' button.
Parameters
  • string $task The task name of this button.
  • string $text The text of this button.
Returns
  • \Joomla\CMS\Toolbar\Button\StandardButton
Since
  • 4.0.0

Method archive - Source code

/**
 * Writes a common 'archive' button.
 *
 * @param   string  $task  The task name of this button.
 * @param   string  $text  The text of this button.
 *
 * @return  StandardButton
 *
 * @since   4.0.0
 */
public function archive(string $task, string $text = 'JTOOLBAR_ARCHIVE') : StandardButton
{
    return $this->standardButton('archive', $text)->task($task);
}