Copied!

AbstractFormContextMenuBuilder

AbstractFormContextMenuBuilder.php : 15
Extends AbstractBuilder

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()

AbstractFormContextMenuBuilder.php : 19
public __construct(MenuItemFactoryInterface $factory, EventDispatcherInterface $eventDispatcher, string $formName)

Parameters

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

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

publicgetTranslationMessages()

AbstractFormContextMenuBuilder.php : 98
public static getTranslationMessages() : array<string|int, Message>

Return values

array<string|int, Message>

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()

AbstractFormContextMenuBuilder.php : 51
protected createStructure(array<string, mixed> $options) : ItemInterface

Parameters

Name Type Default value Description
$options array<string, 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()

AbstractFormContextMenuBuilder.php : 39
protected getConfigureEventName() : string

Return values

string

protectedgetSidebarActionMessage()

AbstractFormContextMenuBuilder.php : 34
protected static getSidebarActionMessage() : string

Return values

string

protectedgetSidebarType()

AbstractFormContextMenuBuilder.php : 32
protected abstract static getSidebarType() : string

Return values

string

should be lowercase alphanumeric + underscore (a-zA-Z0-9_) string