$factory $factory : \Charcoal\Factory\FactoryInterface Store the menu factory instance. Type \Charcoal\Factory\FactoryInterface
$container $container : \Pimple\Container Store the dependency-injection container to fulfill the required services. Type \Pimple\Container
__construct() __construct(\Charcoal\Factory\FactoryInterface $factory, \Pimple\Container $container) Return a new menu builder. Parameters \Charcoal\Factory\FactoryInterface $factory A menu factory. \Pimple\Container $container The DI container.
build() build(array|\ArrayAccess $options) : \Charcoal\Ui\Menu\MenuInterface Build and return a new menu. Parameters array|\ArrayAccess $options The menu build options. Returns \Charcoal\Ui\Menu\MenuInterface