Copied!

MenuItemFactoryInterface

MenuItemFactoryInterface.php : 13
Extends FactoryInterface

Methods

publiccreateLocationMenuItem()

MenuItemFactoryInterface.php : 22

Creates Location menu item only when user has content:read permission.

public createLocationMenuItem(string $name, int $locationId[, array<string|int, mixed> $options = [] ]) : ItemInterface|null

Parameters

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

Return values

ItemInterface|null