You are here

class _taxonomy_CrumbsMultiPlugin_termReference_node in Crumbs, the Breadcrumbs suite 7

Hierarchy

Expanded class hierarchy of _taxonomy_CrumbsMultiPlugin_termReference_node

File

plugins/crumbs.taxonomy.inc, line 98

View source
class _taxonomy_CrumbsMultiPlugin_termReference_node extends _taxonomy_CrumbsMultiPlugin_termReference {
  protected $entityType = 'node';

  /**
   * Match "node/%" router path
   */
  function findParent__node_x($path, $item) {
    $node = $item['map'][1];

    // Load the node if it hasn't been loaded due to a missing wildcard loader.
    $node = is_numeric($node) ? node_load($node) : $node;
    $parent_path = $this
      ->_findParentPath($node);
    if ($parent_path) {
      return array(
        $node->type => $parent_path,
      );
    }
  }

}

Members