class MenutrailbypathUrlHelper in Menu Trail By Path 7.3
Hierarchy
- class \MenutrailbypathUrlHelper
Expanded class hierarchy of MenutrailbypathUrlHelper
1 string reference to 'MenutrailbypathUrlHelper'
- menu_trail_by_path_fix_cache_after_upgrade in ./
menu_trail_by_path.module - Prevent fatal error after upgrade
File
- src/
MenutrailbypathUrlHelper.inc, line 3
View source
class MenutrailbypathUrlHelper {
/**
* Cached version of the url function
*
* @param string $path
* @return string mixed
*/
public function getUrl($path) {
static $urls;
if (!isset($urls[$path])) {
$urls[$path] = url($path);
}
return $urls[$path];
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MenutrailbypathUrlHelper:: |
public | function | Cached version of the url function |