class Navigation extends Navigation implements DenormalizableInterface (View source)

Properties

protected ItemInterface[] $items from  Navigation

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}

bool
has(PageItem $pageItem)

Check if this instance contains a PageItem instance with the same page ID.

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}

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()

bool has(PageItem $pageItem)

Check if this instance contains a PageItem instance with the same page ID.

Parameters

PageItem $pageItem

Return Value

bool

Navigation remove(PageItem $pageItem)

Remove (if present) the PageItems with the same page ID as the PageItem specified.

Parameters

PageItem $pageItem

Return Value

Navigation

denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = [])

{@inheritdoc}

Parameters

DenormalizerInterface $denormalizer
$data
$format
array $context

See also

\Symfony\Component\Serializer\Normalizer\DenormalizableInterface::denormalize()