Mcamara\LaravelLocalization\LaravelLocalization::getNonLocalizedURL PHP Метод

getNonLocalizedURL() публичный Метод

It returns an URL without locale (if it has it) Convenience function wrapping getLocalizedURL(false)
public getNonLocalizedURL ( string | false $url = null ) : string
$url string | false URL to clean, if false, current url would be taken
Результат string URL with no locale in path
    public function getNonLocalizedURL($url = null)
    {
        return $this->getLocalizedURL(false, $url);
    }

Usage Example

Пример #1
0
 /**
  * It returns an URL without locale (if it has it)
  * Convenience function wrapping getLocalizedURL(false)
  *
  * @param string|false $url URL to clean, if false, current url would be taken
  * @return string URL with no locale in path
  * @static 
  */
 public static function getNonLocalizedURL($url = null)
 {
     return \Mcamara\LaravelLocalization\LaravelLocalization::getNonLocalizedURL($url);
 }