Navigation
class Navigation extends Navigation implements DenormalizableInterface (View source)
Properties
protected ItemInterface[] | $items | from Navigation |
Methods
setItems(array $items)
Replace all the existing items with new ones.
from
Navigation
bool
denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = [])
{@inheritdoc}
Details
__clone()
No description
NavigationInterface
add(ItemInterface $item)
Adds an item to the navigation.
array
getItems()
Returns all the items in the navigation.
NavigationInterface
setItems(array $items)
Replace all the existing items with new ones.
array
jsonSerialize()
{@inheritdoc}
bool
has(PageItem $pageItem)
Check if this instance contains a PageItem instance with the same page ID.
Navigation
remove(PageItem $pageItem)
Remove (if present) the PageItems with the same page ID as the PageItem specified.
denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = [])
{@inheritdoc}