Class ContentNavigationCollection

Class ContentNavigationCollection

This class extends the KeyValueCollection where the key is the display name of the navigation and the value the URL of the page. If you use the constructor to set the content navigation links make sure that you provide an empty URL for the current page so that it's marked as active in frontend.

AbstractCollection implements IteratorAggregate, Countable
KeyValueCollection
ContentNavigationCollection implements ContentNavigationCollectionInterface

Methods summary

public add( StringType $name, StringType $url, BoolType $current )

Adds a new page to the collection.

Methods inherited from KeyValueCollection

__construct(), _addToCollectionContentArray(), _getValidType(), getValue(), keyExists()

Methods inherited from AbstractCollection

_add(), _getExceptionText(), _itemIsValid(), count(), getArray(), getItem(), getIterator(), isEmpty()

Properties summary

Properties inherited from AbstractCollection

$collectionContentArray