core/traits/ApplicationTrait.php
public function getFrontendModules()
    {
        $modules = [];

        foreach ($this->getModules() as $id => $obj) {
            if ($obj instanceof Module && !$obj instanceof AdminModuleInterface && !$obj instanceof CoreModuleInterface) {
                $modules[$id] = $obj;
            }
        }

        return $modules;
    }
public function getFrontendModules()
    {
        $modules = [];

        foreach ($this->getModules() as $id => $obj) {
            if ($obj instanceof Module && !$obj instanceof AdminModuleInterface && !$obj instanceof CoreModuleInterface) {
                $modules[$id] = $obj;
            }
        }

        return $modules;
    }
public function getFrontendModules ( ) { $ modules = [ ] ; foreach ( $ this -> getModules ( ) as $ id => $ obj ) { if ( $ obj instanceof Module && ! $ obj instanceof AdminModuleInterface && ! $ obj instanceof CoreModuleInterface ) { $ modules [ $ id ] = $ obj ; } } return $ modules ; }
Return a list with all registered frontend modules except 'luya' and 'cms'. This is needed in the module block.

@return \luya\base\Module
Return a list with all registered frontend modules except luya and cms . This is needed in the module block .