core/helpers/Url.php
public static function toInternal(array $routeParams, $scheme = false)
    {
        if ($scheme) {
            return Yii::$app->getUrlManager()->internalCreateAbsoluteUrl($routeParams);
        }
        
        return Yii::$app->getUrlManager()->internalCreateUrl($routeParams);
    }
public static function toInternal(array $routeParams, $scheme = false)
    {
        if ($scheme) {
            return Yii::$app->getUrlManager()->internalCreateAbsoluteUrl($routeParams);
        }
        
        return Yii::$app->getUrlManager()->internalCreateUrl($routeParams);
    }
public static function toInternal ( array $ routeParams , $ scheme = false ) { if ( $ scheme ) { return Yii :: $ app -> getUrlManager ( ) -> internalCreateAbsoluteUrl ( $ routeParams ) ; } return Yii :: $ app -> getUrlManager ( ) -> internalCreateUrl ( $ routeParams ) ; }
This helper method will not concern any context informations

@param array $routeParams Example array to route `['/module/controller/action']`.
@param boolean $scheme Whether to return the absolute url or not
@return string The created url.
This helper method will not concern any context informations