public function BeforeDelete($item)
    {
        $navPages = NavigationPage::Schema()->FetchByPage(false, $item);
        foreach ($navPages as $navPage)
        {
            $item = $navPage->GetItem();
            $tree = new TreeBuilder(new NavigationTreeProvider($item->GetNavigation()));
            $tree->Remove($item);
        }
    }
public function BeforeDelete($item)
    {
        $navPages = NavigationPage::Schema()->FetchByPage(false, $item);
        foreach ($navPages as $navPage)
        {
            $item = $navPage->GetItem();
            $tree = new TreeBuilder(new NavigationTreeProvider($item->GetNavigation()));
            $tree->Remove($item);
        }
    }
public function BeforeDelete ( $ item ) { $ navPages = NavigationPage :: Schema ( ) -> FetchByPage ( false , $ item ) ; foreach ( $ navPages as $ navPage ) { $ item = $ navPage -> GetItem ( ) ; $ tree = new TreeBuilder ( new NavigationTreeProvider ( $ item -> GetNavigation ( ) ) ) ; $ tree -> Remove ( $ item ) ; } }
Deletes the navi items related to the page
@param Page $item The page to be deleted
Deletes the navi items related to the page