private function findModuleInRoute($route)
    {
        $route = parse_url($route, PHP_URL_PATH);
        
        $parts = array_values(array_filter(explode('/', $route)));
        
        if (isset($parts[0]) && array_key_exists($parts[0], Yii::$app->getApplicationModules())) {
            return $parts[0];
        }
    
        return false;
    }
private function findModuleInRoute($route)
    {
        $route = parse_url($route, PHP_URL_PATH);
        
        $parts = array_values(array_filter(explode('/', $route)));
        
        if (isset($parts[0]) && array_key_exists($parts[0], Yii::$app->getApplicationModules())) {
            return $parts[0];
        }
    
        return false;
    }
private function findModuleInRoute ( $ route ) { $ route = parse_url ( $ route , PHP_URL_PATH ) ; $ parts = array_values ( array_filter ( explode ( '/' , $ route ) ) ) ; if ( isset ( $ parts [ 0 ] ) && array_key_exists ( $ parts [ 0 ] , Yii :: $ app -> getApplicationModules ( ) ) ) { return $ parts [ 0 ] ; } return false ; }
See if the module of a provided route exists in the luya application list.

The module to test must be an instance of `luya\base\Module`.

@param string $route
@return boolean|string
See if the module of a provided route exists in the luya application list .