You are here

interface crumbs_MonoPlugin_example in Crumbs, the Breadcrumbs suite 7

Same name and namespace in other branches
  1. 7.2 crumbs.api.php \crumbs_MonoPlugin_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_MonoPlugin_example

All classes that implement crumbs_MonoPlugin_example

File

./crumbs.api.php, line 27

View source
interface crumbs_MonoPlugin_example extends crumbs_MonoPlugin {

  /**
   * Specify if this plugin is disabled by default,
   * instead of inheriting from the next matching wildcard rule.
   *
   * @return :boolean
   *   TRUE, if the plugin is disabled by default.
   */
  function disabledByDefault();

  /**
   * @param $path
   *   System path that we want to find a parent for.
   * @param $item
   *   Router item, as returned by menu_get_item(), but with a few convenience
   *   additions added in crumbs_get_router_item().
   *
   * @return
   *   The parent path suggested by this plugin.
   */
  function findParent();

  /**
   * Same signature as findParent()
   * Only called for router path node/%
   */
  function findParent__node_x($path, $item);

  /**
   * @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
   *   A string link text.
   */
  function findTitle($path, $item);

  /**
   * Same signature as findTitle()
   * Only called for router path node/%
   */
  function findTitle__node_x($path, $item);

}

Members

Namesort descending Modifiers Type Description Overrides
crumbs_MonoPlugin::describe function 13
crumbs_MonoPlugin_example::disabledByDefault function Specify if this plugin is disabled by default, instead of inheriting from the next matching wildcard rule.
crumbs_MonoPlugin_example::findParent function
crumbs_MonoPlugin_example::findParent__node_x function Same signature as findParent() Only called for router path node/%
crumbs_MonoPlugin_example::findTitle function
crumbs_MonoPlugin_example::findTitle__node_x function Same signature as findTitle() Only called for router path node/%