class Navigation implements NavigationInterface, JsonSerializable (View source)

Properties

protected ItemInterface[] $items

Methods

__clone()

No description

add(ItemInterface $item)

Adds an item to the navigation.

array
getItems()

Returns all the items in the navigation.

setItems(array $items)

Replace all the existing items with new ones.

array
jsonSerialize()

{@inheritdoc}

Details

__clone()

No description

NavigationInterface add(ItemInterface $item)

Adds an item to the navigation.

Parameters

ItemInterface $item

Return Value

NavigationInterface

See also

NavigationInterface::add

array getItems()

Returns all the items in the navigation.

Return Value

array

NavigationInterface setItems(array $items)

Replace all the existing items with new ones.

Parameters

array $items

Return Value

NavigationInterface

See also

NavigationInterface::setItems

array jsonSerialize()

{@inheritdoc}

Return Value

array

See also

\JsonSerializable::jsonSerialize()