Back to CoreButtonsTrait class

Method unarchive

public \Joomla\CMS\Toolbar\Button\StandardButton
unarchive
(string $task, string $text = 'JTOOLBAR_UNARCHIVE')
Writes a common 'unarchive' 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 unarchive - Source code

/**
 * Writes a common 'unarchive' 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 unarchive(string $task, string $text = 'JTOOLBAR_UNARCHIVE') : StandardButton
{
    return $this->standardButton('unarchive', $text)->task($task);
}