src/Services/TypiCMS.php
public function getPagesLinkedToModule($module = null)
    {
        $module = strtolower($module);
        $routes = app('typicms.routes');

        $pages = [];
        foreach ($routes as $page) {
            if ($page->module == $module) {
                $pages[] = $page;
            }
        }

        return $pages;
    }
public function getPagesLinkedToModule($module = null)
    {
        $module = strtolower($module);
        $routes = app('typicms.routes');

        $pages = [];
        foreach ($routes as $page) {
            if ($page->module == $module) {
                $pages[] = $page;
            }
        }

        return $pages;
    }
public function getPagesLinkedToModule ( $ module = null ) { $ module = strtolower ( $ module ) ; $ routes = app ( 'typicms.routes' ) ; $ pages = [ ] ; foreach ( $ routes as $ page ) { if ( $ page -> module == $ module ) { $ pages [ ] = $ page ; } } return $ pages ; }
Return an array of pages linked to a module.

@param string $module

@return array
Return an array of pages linked to a module .