Back to CoreButtonsTrait class

Method checkin

public \Joomla\CMS\Toolbar\Button\StandardButton
checkin
(string $task, string $text = 'JTOOLBAR_CHECKIN')
Writes a checkin button for a given option.
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 checkin - Source code

/**
 * Writes a checkin button for a given option.
 *
 * @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 checkin(string $task, string $text = 'JTOOLBAR_CHECKIN') : StandardButton
{
    return $this->standardButton('checkin', $text)->task($task);
}