class Switcher (View source)

The switcher component.

Methods

static string
render(string $target, array $items = array(), array $dropdown = array())

Create a sticky switcher menu with an optional dropdown menu.

Details

static string render(string $target, array $items = array(), array $dropdown = array())

Create a sticky switcher menu with an optional dropdown menu.

Parameters

string $target
array $items Main menu items
array $dropdown Dropdown menu items

Return Value

string The rendered menu HTML