You are here

protected function crumbs_MultiPlugin_EntityFindSomething::find in Crumbs, the Breadcrumbs suite 7.2

Parameters

string $path:

array $item:

Return value

array

2 calls to crumbs_MultiPlugin_EntityFindSomething::find()
crumbs_MultiPlugin_EntityParent::findParent in lib/MultiPlugin/EntityParent.php
Find candidates for the parent path.
crumbs_MultiPlugin_EntityTitle::findTitle in lib/MultiPlugin/EntityTitle.php
Find candidates for the parent path.

File

lib/MultiPlugin/EntityFindSomething.php, line 80

Class

crumbs_MultiPlugin_EntityFindSomething

Code

protected function find($path, $item) {
  if (FALSE === ($entity = crumbs_Util::itemExtractEntity($item, $this->entityType))) {
    return NULL;
  }
  if ('user' === $this->entityType) {
    return $this
      ->userFind($entity);
  }
  else {
    return $this
      ->entityFind($entity);
  }
}