private function removeNonMappedPages()
    {
        /** @var PageInterface[] $staticPages */
        $staticPages = $this->pageRepository->findBy(['static' => true], ['left' => 'DESC']);
        foreach ($staticPages as $page) {
            if (null === $this->findRouteDefinitionByRouteName($page->getRoute())) {
                $this->outputPageAction($page->getName(), 'removed');
                $this->pageOperator->delete($page);
            }
        }
    }
private function removeNonMappedPages()
    {
        /** @var PageInterface[] $staticPages */
        $staticPages = $this->pageRepository->findBy(['static' => true], ['left' => 'DESC']);
        foreach ($staticPages as $page) {
            if (null === $this->findRouteDefinitionByRouteName($page->getRoute())) {
                $this->outputPageAction($page->getName(), 'removed');
                $this->pageOperator->delete($page);
            }
        }
    }
private function removeNonMappedPages ( ) { /** @var PageInterface[] $staticPages */ $ staticPages = $ this -> pageRepository -> findBy ( [ 'static' => true ] , [ 'left' => 'DESC' ] ) ; foreach ( $ staticPages as $ page ) { if ( null === $ this -> findRouteDefinitionByRouteName ( $ page -> getRoute ( ) ) ) { $ this -> outputPageAction ( $ page -> getName ( ) , 'removed' ) ; $ this -> pageOperator -> delete ( $ page ) ; } } }
Removes static pages which are no longer mapped to the routing.
Removes static pages which are no longer mapped to the routing .