core/traits/ApplicationTrait.php
public function getAdminModules()
    {
        $modules = [];
        
        foreach ($this->getModules() as $id => $obj) {
            if ($obj instanceof Module && $obj instanceof AdminModuleInterface) {
                $modules[$id] = $obj;
            }
        }
        
        return $modules;
    }
public function getAdminModules()
    {
        $modules = [];
        
        foreach ($this->getModules() as $id => $obj) {
            if ($obj instanceof Module && $obj instanceof AdminModuleInterface) {
                $modules[$id] = $obj;
            }
        }
        
        return $modules;
    }
public function getAdminModules ( ) { $ modules = [ ] ; foreach ( $ this -> getModules ( ) as $ id => $ obj ) { if ( $ obj instanceof Module && $ obj instanceof AdminModuleInterface ) { $ modules [ $ id ] = $ obj ; } } return $ modules ; }
Return all Admin Module Interface implementing modules.

@return \luya\base\AdminModuleInterface
Return all Admin Module Interface implementing modules .