You are here

function crumbs_get_trail_finder in Crumbs, the Breadcrumbs suite 7

Same name and namespace in other branches
  1. 6.2 crumbs.trail.inc \crumbs_get_trail_finder()

Loads and instantiates the trail finder.

Return value

An instance of crumbs_TrailFinder.

1 call to crumbs_get_trail_finder()
crumbs_get_trail in ./crumbs.module
Returns the trail for the provided path.

File

./crumbs.module, line 312
Provides an API for building breadcrumbs.

Code

function crumbs_get_trail_finder() {
  static $trail_finder;
  if (!isset($trail_finder)) {
    $parent_finder = crumbs_get_parent_finder();
    $trail_finder = new crumbs_TrailFinder($parent_finder);
  }
  return $trail_finder;
}