class path_CrumbsMonoPlugin in Crumbs, the Breadcrumbs suite 7.2
Same name and namespace in other branches
- 7 plugins/crumbs.path.inc \path_CrumbsMonoPlugin
Implementation of class hook class_CrumbsParentFinder on the behalf of path module.
Hierarchy
- class \path_CrumbsMonoPlugin implements crumbs_MonoPlugin_FindParentInterface
Expanded class hierarchy of path_CrumbsMonoPlugin
File
- plugins/
crumbs.path.inc, line 20
View source
class path_CrumbsMonoPlugin implements crumbs_MonoPlugin_FindParentInterface {
/**
* {@inheritdoc}
*/
function describe($api) {
return t('Chop off the last fragment of the path alias, consider the result as the parent path.');
}
/**
* {@inheritdoc}
*/
function findParent($path, $item) {
if ($alias = $item['alias']) {
return crumbs_reduce_path($alias, 1);
}
return NULL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
path_CrumbsMonoPlugin:: |
function |
Overrides crumbs_MonoPlugin:: |
||
path_CrumbsMonoPlugin:: |
function |
Find candidates for the parent path. Overrides crumbs_MonoPlugin_FindParentInterface:: |