Back to CoreButtonsTrait class

Method edit

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

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