protected function getAllModules()
    {
        return $this->extensionManager->discoverModules()
                    ->showInstalled()
                    ->showUninstalled()
                    ->showNoCore()
                    ->showCore()
                    ->getList(true);
    }
protected function getAllModules()
    {
        return $this->extensionManager->discoverModules()
                    ->showInstalled()
                    ->showUninstalled()
                    ->showNoCore()
                    ->showCore()
                    ->getList(true);
    }
protected function getAllModules ( ) { return $ this -> extensionManager -> discoverModules ( ) -> showInstalled ( ) -> showUninstalled ( ) -> showNoCore ( ) -> showCore ( ) -> getList ( true ) ; }
Get module of all modules in the system.

@return array
Module list.
Get module of all modules in the system .