You are here

class _entityreference_CrumbsMultiPlugin_user in Crumbs, the Breadcrumbs suite 7

Hierarchy

Expanded class hierarchy of _entityreference_CrumbsMultiPlugin_user

File

plugins/crumbs.entityreference.inc, line 86

View source
class _entityreference_CrumbsMultiPlugin_user extends _entityreference_CrumbsMultiPlugin {
  protected $entityType = 'user';

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

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

}

Members