Table of Contents
Properties
-
$items
: Collection<string, NavItem>
Methods
-
create()
: static
-
getGroups()
: array<string|int, string>
-
getItems()
: Collection<string|int, NavItem>
-
getItemsInGroup()
: Collection<string|int, NavItem>
-
hasGroups()
: bool
-
isGroupActive()
: bool
-
makeGroupTitle()
: string
-
__construct()
: mixed
-
canAddRoute()
: bool
-
generate()
: void
-
removeDuplicateItems()
: void
-
sortByPriority()
: void
-
isPageIndexPage()
: bool
-
shouldIndexPageBeActive()
: bool
$items
public
Collection<string, NavItem>
$items
create()
public
static create() : static
getGroups()
public
getGroups() : array<string|int, string>
Return values
array<string|int, string>
getItems()
public
getItems() : Collection<string|int, NavItem>
Return values
Collection<string|int, NavItem>
getItemsInGroup()
public
getItemsInGroup(string|null $group) : Collection<string|int, NavItem>
Parameters
-
$group
: string|null
-
Return values
Collection<string|int, NavItem>
hasGroups()
public
hasGroups() : bool
isGroupActive()
public
isGroupActive(string $group) : bool
Parameters
-
$group
: string
-
makeGroupTitle()
public
makeGroupTitle(string $group) : string
Parameters
-
$group
: string
-
__construct()
protected
final __construct() : mixed
canAddRoute()
protected
canAddRoute(Route $route) : bool
Parameters
-
$route
: Route
-
generate()
protected
generate() : void
removeDuplicateItems()
protected
removeDuplicateItems() : void
sortByPriority()
protected
sortByPriority() : void
isPageIndexPage()
private
isPageIndexPage() : bool
shouldIndexPageBeActive()
private
shouldIndexPageBeActive(string $group) : bool
Parameters
-
$group
: string
-