Back to ActionsDropdown class

Method unarchive

public static void
unarchive
(mixed $id, mixed $prefix = '')
Append an unarchive item to the current dropdown menu
Parameters
  • string $id ID of corresponding checkbox of the record
  • string $prefix The task prefix
Returns
  • void
Since
  • 3.2

Method unarchive - Source code

/**
 * Append an unarchive item to the current dropdown menu
 *
 * @param   string  $id      ID of corresponding checkbox of the record
 * @param   string  $prefix  The task prefix
 *
 * @return  void
 *
 * @since   3.2
 */
public static function unarchive($id, $prefix = '')
{
    $task = ($prefix ? $prefix . '.' : '') . 'unpublish';
    static::addCustomItem(Text::_('JTOOLBAR_UNARCHIVE'), 'unarchive', $id, $task);
}