Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Arcanedev
Localization
Contracts
RouteTranslatorInterface
findTranslatedRouteByPath
Arcanedev\Localization\Contracts\RouteTranslatorInterface::findTranslatedRouteByPath PHP Method
RouteTranslatorInterface Interface Documentation
Show file
Open project: arcanedev/localization
findTranslatedRouteByPath()
public
method
Returns the translated route for the path and the url given.
public
findTranslatedRouteByPath
(
string
$path
,
string
$locale
) :
string
| false
$path
string
- Path to check if it is a translated route
$locale
string
- Language to check if the path exists
return
string
| false
public function findTranslatedRouteByPath($path, $locale);
RouteTranslatorInterface
findTranslatedRouteByPath
getCurrentRoute
getRouteNameFromPath
getTranslatedRoute
getTranslatedRoutes
getUrlFromRouteName
hasCurrentRoute
hasTranslation
setCurrentRoute
trans