You are here

function crumbs_PluginSystem_PluginEngine::findParent in Crumbs, the Breadcrumbs suite 7.2

Invoke all relevant plugins to find the parent for a given path.

Parameters

string $path:

array $item:

Return value

mixed|null

File

lib/PluginSystem/PluginEngine.php, line 58

Class

crumbs_PluginSystem_PluginEngine

Code

function findParent($path, $item) {
  $iterator = $this->pluginBag
    ->getRoutePluginMethodIterator('findParent', $item['route']);
  $result = $this
    ->find($iterator, array(
    $path,
    $item,
  ), TRUE);
  return $result;
}