You are here

class crumbs_MonoPlugin_FixedParentPath in Crumbs, the Breadcrumbs suite 7.2

Hierarchy

Expanded class hierarchy of crumbs_MonoPlugin_FixedParentPath

File

lib/MonoPlugin/FixedParentPath.php, line 3

View source
class crumbs_MonoPlugin_FixedParentPath implements crumbs_MonoPlugin_FindParentInterface {

  /**
   * @var string
   */
  protected $parentPath;

  /**
   * @param string $parent_path
   */
  function __construct($parent_path) {
    $this->parentPath = $parent_path;
  }

  /**
   * {@inheritdoc}
   */
  function describe($api) {
    $api
      ->titleWithLabel($this->parentPath, t('Parent'));
  }

  /**
   * {@inheritdoc}
   */
  function findParent($path, $item) {
    return $this->parentPath;
  }

}

Members