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

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

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

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

        return $modules;
    }
public function getApplicationModules ( ) { $ modules = [ ] ; foreach ( $ this -> getModules ( ) as $ id => $ obj ) { if ( $ obj instanceof Module ) { $ modules [ $ id ] = $ obj ; } } return $ modules ; }
Get an array with all modules which are an instance of the `luya\base\Module`.

@return \luya\base\Module
Get an array with all modules which are an instance of the luya \ base \ Module .