You are here

function crumbs_EntityPlugin::entityFindCandidate in Crumbs, the Breadcrumbs suite 7.2

Parameters

object $entity: The entity on this path.

string $entity_type: The entity type

string $distinction_key: Typically the bundle name. On user entities, this is one of the roles of the user. (this might be called more than once per user)

Return value

string A candidate for the parent path or title.

3 methods override crumbs_EntityPlugin::entityFindCandidate()
crumbs_CrumbsEntityPlugin_TokenDisabled::entityFindCandidate in lib/CrumbsEntityPlugin/TokenDisabled.php
crumbs_EntityPlugin_Callback::entityFindCandidate in lib/EntityPlugin/Callback.php
@inheritdoc
crumbs_EntityPlugin_Field_Abstract::entityFindCandidate in lib/EntityPlugin/Field/Abstract.php

File

lib/EntityPlugin.php, line 28

Class

crumbs_EntityPlugin
Interface for entity title plugins registered with hook_crumbs_plugins().

Code

function entityFindCandidate($entity, $entity_type, $distinction_key);