ContainerAwareToolbarFactory

Implements ToolbarFactoryInterface, \Joomla\DI\ContainerAwareInterface

Default factory 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

3.8.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

loadButtonClass

Load the button class including the deprecated ones.

loadButtonClass(string type) : string|null
since

4.0.0

Arguments

type

stringButton Type (normalized)

Response

string|null