class OpenToCurrentPageModifier extends OpenToCurrentPageModifier (View source)

Traits

Properties

protected Page $currentPage from  OpenToCurrentPageModifier
protected Navigation $navigationService from  OpenToCurrentPageModifier

Methods

PageItem|mixed|null
getPageItemFromNavigation(Page $page, array $items)

No description

__construct(Navigation $navigationService, Page $currentPage)

No description

removeUnrelatedSectionsFromNavigation(array $items, array $sectionIDs)

No description

array
getSectionIDs()

No description

modify(NavigationInterface $navigation)

No description

Details

protected PageItem|mixed|null getPageItemFromNavigation(Page $page, array $items)

No description

Parameters

Page $page
array $items

Return Value

PageItem|mixed|null

__construct(Navigation $navigationService, Page $currentPage)

No description

Parameters

Navigation $navigationService
Page $currentPage

protected removeUnrelatedSectionsFromNavigation(array $items, array $sectionIDs)

No description

Parameters

array $items
array $sectionIDs

protected array getSectionIDs()

No description

Return Value

array

modify(NavigationInterface $navigation)

No description

Parameters

NavigationInterface $navigation