Overview

Namespaces

  • Charcoal
    • Ui
      • Dashboard
      • Form
      • FormGroup
      • FormInput
      • Layout
      • Menu
      • MenuItem
      • ServiceProvider

Classes

  • AbstractMenu
  • GenericMenu
  • MenuBuilder
  • MenuConfig
  • MenuFactory

Interfaces

  • MenuInterface
  • Overview
  • Namespace
  • Class

Class MenuBuilder

Menu Builder

Namespace: Charcoal\Ui\Menu
Located at Charcoal/Ui/Menu/MenuBuilder.php
Methods summary
public
# __construct( Charcoal\Factory\FactoryInterface $factory, Pimple\Container $container )

Return a new menu builder.

Return a new menu builder.

Parameters

$factory
A menu factory.
$container
The DI container.
public Charcoal\Ui\Menu\MenuInterface
# build( array|ArrayAccess $options )

Build and return a new menu.

Build and return a new menu.

Parameters

$options
The menu build options.

Returns

Charcoal\Ui\Menu\MenuInterface
Constants summary
string DEFAULT_TYPE

The default, concrete, menu model.

The default, concrete, menu model.

Const

string
# 'charcoal/ui/menu/generic'
Properties summary
protected Charcoal\Factory\FactoryInterface $factory

Store the menu factory instance.

Store the menu factory instance.

#
protected Pimple\Container $container

Store the dependency-injection container to fulfill the required services.

Store the dependency-injection container to fulfill the required services.

#
API documentation generated by ApiGen