FixedParentPath.php in Crumbs, the Breadcrumbs suite 7.2
File
lib/MonoPlugin/FixedParentPath.phpView source
<?php
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;
}
}
Classes
Name | Description |
---|---|
crumbs_MonoPlugin_FixedParentPath |