class PageBreadcrumb implements BreadcrumbInterface, Iterator (View source)

Properties

protected ItemInterface[] $items

Methods

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.

rewind()

{@inheritdoc}

current()

{@inheritdoc}

int|string
key()

{@inheritdoc}

next()

{@inheritdoc}

bool
valid()

{@inheritdoc}

Details

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

See also

NavigationInterface::getItems

NavigationInterface setItems(array $items)

Replace all the existing items with new ones.

Parameters

array $items

Return Value

NavigationInterface

See also

NavigationInterface::setItems

rewind()

{@inheritdoc}

See also

\Iterator::rewind()

ItemInterface|false current()

{@inheritdoc}

Return Value

ItemInterface|false

See also

\Iterator::current()

int|string key()

{@inheritdoc}

Return Value

int|string

See also

\Iterator::key()

next()

{@inheritdoc}

See also

\Iterator::next()

bool valid()

{@inheritdoc}

Return Value

bool

See also

\Iterator::valid()