You are here

class MenutrailbypathUrlHelper in Menu Trail By Path 7.3

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
MenutrailbypathUrlHelper::getUrl public function Cached version of the url function