Copied!

AbstractBuilder

AbstractBuilder.php : 19

Base builder for extendable AdminUI menus.

Properties

protected $eventDispatcher

AbstractBuilder.php : 25
protected EventDispatcherInterface $eventDispatcher

protected $factory

AbstractBuilder.php : 22
protected MenuItemFactoryInterface $factory

Methods

public__construct()

AbstractBuilder.php : 31
public __construct(MenuItemFactoryInterface $factory, EventDispatcherInterface $eventDispatcher)

Parameters

Name Type Default value Description
$factory MenuItemFactoryInterface - -
$eventDispatcher EventDispatcherInterface - -

publicbuild()

AbstractBuilder.php : 72
public build(array<string|int, mixed> $options) : ItemInterface

Parameters

Name Type Default value Description
$options array<string|int, mixed> - -

Return values

ItemInterface

protectedcreateConfigureMenuEvent()

AbstractBuilder.php : 62
protected createConfigureMenuEvent(ItemInterface $menu[, array<string|int, mixed> $options = [] ]) : ConfigureMenuEvent

Parameters

Name Type Default value Description
$menu ItemInterface - -
$options array<string|int, mixed> [] -

Return values

ConfigureMenuEvent

protectedcreateMenuItem()

AbstractBuilder.php : 43
protected createMenuItem(string $id[, array<string|int, mixed> $options = [] ]) : ItemInterface

Parameters

Name Type Default value Description
$id string - -
$options array<string|int, mixed> [] -

Return values

ItemInterface

protectedcreateStructure()

AbstractBuilder.php : 83
protected abstract createStructure(array<string|int, mixed> $options) : ItemInterface

Parameters

Name Type Default value Description
$options array<string|int, mixed> - -

Return values

ItemInterface

protecteddispatchMenuEvent()

AbstractBuilder.php : 52
protected dispatchMenuEvent(string $name, Event $event) : void

Parameters

Name Type Default value Description
$name string - -
$event Event - -

protectedgetConfigureEventName()

AbstractBuilder.php : 81
protected abstract getConfigureEventName() : string

Return values

string