Copied!

CreateFormContextMenuBuilder

CreateFormContextMenuBuilder.php : 16
Implements TranslationContainerInterface

Builds menu with "Create" nad "Cancel" items.

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

CreateFormContextMenuBuilder.php : 23
protected static getSidebarActionMessage() : string

Return values

string

protectedgetSidebarType()

CreateFormContextMenuBuilder.php : 18
protected static getSidebarType() : string

Return values

string

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