You are here

function commerce_checkout_CrumbsMonoPlugin_checkoutPages::findTitle in Crumbs, the Breadcrumbs suite 7.2

Find candidates for the parent path.

Parameters

string $path: The path that we want to find a parent for.

array $item: Item as returned from crumbs_get_router_item()

Return value

string Title candidate.

Overrides crumbs_MonoPlugin_FindTitleInterface::findTitle

File

plugins/crumbs.commerce_checkout.inc, line 56

Class

commerce_checkout_CrumbsMonoPlugin_checkoutPages

Code

function findTitle($path, $item) {
  if (empty($item['map'][2]['name'])) {
    return NULL;
  }
  if (!is_object($item['map'][1])) {
    return NULL;
  }
  list(, $order, $page) = $item['map'];
  return t($page['name']);
}