You are here

interface crumbs_MultiPlugin_example in Crumbs, the Breadcrumbs suite 7.2

Same name and namespace in other branches
  1. 7 crumbs.api.php \crumbs_MultiPlugin_example

Pseudo-interface for plugin objects registered with hook_crumbs_plugins(). The methods defined here are all optional. We only use this interface for documentation, no class actually implements it.

Hierarchy

Expanded class hierarchy of crumbs_MultiPlugin_example

All classes that implement crumbs_MultiPlugin_example

File

./crumbs.api.php, line 93

View source
interface crumbs_MultiPlugin_example extends crumbs_MultiPlugin {

  /**
   * @param string $path
   *   System path that we want to find a parent for.
   * @param array $item
   *   Router item, as returned by menu_get_item(), but with a few convenience
   *   additions added in crumbs_get_router_item().
   *
   * @return string[]
   *   A key-value array, where the keys identify crumbs rules, and the values
   *   are candidates for the parent path.
   *   Rule keys are relative to the plugin key.
   */
  function findParent($path, $item);

  /**
   * Same signature as findParent()
   * Only called for router path node/%
   *
   * @param string $path
   * @param array $item
   *
   * @return string[]
   */
  function findParent__node_x($path, $item);

  /**
   * @param string $path
   *   System path of the breadcrumb item that we want to find a link text for.
   * @param array $item
   *   Router item, as returned by menu_get_item(), but with a few convenience
   *   additions added in crumbs_get_router_item().
   *
   * @return string[]
   *   A key-value array, where the keys identify crumbs rules, and the values
   *   are candidates for the link title.
   *   Rule keys are relative to the plugin key.
   */
  function findTitle($path, $item);

  /**
   * Same signature as findParent()
   * Only called for router path node/%
   *
   * @param $path
   *   System path of the breadcrumb item that we want to find a link text for.
   * @param $item
   *   Router item, as returned by menu_get_item(), but with a few convenience
   *   additions added in crumbs_get_router_item().
   *
   * @return string[]
   *   A key-value array, where the keys identify crumbs rules, and the values
   *   are candidates for the link title.
   *   Rule keys are relative to the plugin key.
   */
  function findTitle__node_x($path, $item);

}

Members

Namesort descending Modifiers Type Description Overrides
crumbs_MultiPlugin::describe function 11
crumbs_MultiPlugin_example::findParent function
crumbs_MultiPlugin_example::findParent__node_x function Same signature as findParent() Only called for router path node/%
crumbs_MultiPlugin_example::findTitle function
crumbs_MultiPlugin_example::findTitle__node_x function Same signature as findParent() Only called for router path node/%