CpNav
abstract class CpNav (View source)
A list of components to render in the Control Panel navigation menu.
Traits
Methods
static void
add($content = null, int $position = 0, string|null $key = null)
Add an item to the list.
from
OrderedList
Details
static void
add($content = null, int $position = 0, string|null $key = null)
Add an item to the list.
static void
replace(string $key, $content)
Replace an existing item in the list.
static void
remove(string $key)
Remove an item from the list.
static array|null
get(string $key)
Get an item in the list.
static array
build()
Get the resulting list in order.