You are here

interface crumbs_EntityPlugin in Crumbs, the Breadcrumbs suite 7.2

Interface for entity title plugins registered with hook_crumbs_plugins().

Hierarchy

Expanded class hierarchy of crumbs_EntityPlugin

All classes that implement crumbs_EntityPlugin

File

lib/EntityPlugin.php, line 6

View source
interface crumbs_EntityPlugin {

  /**
   * @param crumbs_InjectedAPI_describeMultiPlugin $api
   * @param string $entity_type
   * @param array $keys
   */
  function describe($api, $entity_type, $keys);

  /**
   * @param object $entity
   *   The entity on this path.
   * @param string $entity_type
   *   The entity type
   * @param 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 string
   *   A candidate for the parent path or title.
   */
  function entityFindCandidate($entity, $entity_type, $distinction_key);

}

Members