Since: 4.0.0

interface ToolbarFactoryInterface

Interface for creating toolbar objects

Methods

createButton(Toolbar $toolbar, string $type)

Creates a new toolbar button.

createToolbar(string $name = 'toolbar')

Creates a new Toolbar object.

Details

ToolbarButton createButton(Toolbar $toolbar, string $type)

Since: 4.0.0

Creates a new toolbar button.

Parameters

Toolbar $toolbar

The Toolbar instance to attach to the button

string $type

Button Type

Return Value

ToolbarButton

Exceptions

InvalidArgumentException

Toolbar createToolbar(string $name = 'toolbar')

Since: 4.0.0

Creates a new Toolbar object.

Parameters

string $name

The toolbar name.

Return Value

Toolbar