You are here

function crumbs_get_parent_finder in Crumbs, the Breadcrumbs suite 7

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

Loads and instantiates the parent finder.

Return value

An instance of crumbs_ParentFinder.

1 call to crumbs_get_parent_finder()
crumbs_get_trail_finder in ./crumbs.module
Loads and instantiates the trail finder.

File

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

Code

function crumbs_get_parent_finder() {
  static $parent_finder;
  if (!isset($parent_finder)) {
    $plugin_engine = crumbs_get_plugin_engine();
    $parent_finder = new crumbs_ParentFinder($plugin_engine);
  }
  return $parent_finder;
}