ContainerAwareToolbarFactory

Implements ToolbarFactoryInterface, ContainerAwareInterface

Default factory for creating toolbar objects

since

4.0.0

package

Joomla CMS

Methods

createButton

Creates a new toolbar button.

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

3.8.0

throws

InvalidArgumentException

Arguments

toolbar

ToolbarThe Toolbar instance to attach to the button

type

stringButton Type

Response

ToolbarButton

createToolbar

Creates a new Toolbar object.

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

4.0.0

Arguments

name

stringThe toolbar name.

Response

Toolbar

loadButtonClass

Load the button class including the deprecated ones.

loadButtonClass( type) : string|null
since

4.0.0

Arguments

type

stringButton Type (normalized)

Response

string|null