ToolbarFactoryInterface

Interface for creating toolbar objects

since

4.0.0

package

Application

Methods

createButton

Creates a new toolbar button.

createButton(\Joomla\CMS\Toolbar\Toolbar toolbar, string type) : \Joomla\CMS\Toolbar\ToolbarButton
since

4.0.0

throws

\InvalidArgumentException

Arguments

toolbar

\Joomla\CMS\Toolbar\ToolbarThe Toolbar instance to attach to the button

type

stringButton Type

Response

\Joomla\CMS\Toolbar\ToolbarButton

createToolbar

Creates a new Toolbar object.

createToolbar(string name = 'toolbar') : \Joomla\CMS\Toolbar\Toolbar
since

4.0.0

Arguments

name

stringThe toolbar name.

Response

\Joomla\CMS\Toolbar\Toolbar