class crumbs_CrumbsMonoPlugin_home_title in Crumbs, the Breadcrumbs suite 7
Same name and namespace in other branches
- 7.2 plugins/crumbs.crumbs.inc \crumbs_CrumbsMonoPlugin_home_title
Hierarchy
- class \crumbs_CrumbsMonoPlugin_home_title implements crumbs_MonoPlugin
Expanded class hierarchy of crumbs_CrumbsMonoPlugin_home_title
File
- plugins/
crumbs.crumbs.inc, line 13
View source
class crumbs_CrumbsMonoPlugin_home_title implements crumbs_MonoPlugin {
protected $frontNormalPath;
function __construct() {
$this->frontNormalPath = drupal_get_normal_path(variable_get('site_frontpage', 'node'));
}
function describe($api) {
return t('Set "Home" as the title for the root item.');
}
function findTitle($path, array $item) {
if ($path === $this->frontNormalPath) {
return t('Home');
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
crumbs_CrumbsMonoPlugin_home_title:: |
protected | property | ||
crumbs_CrumbsMonoPlugin_home_title:: |
function |
Overrides crumbs_MonoPlugin:: |
||
crumbs_CrumbsMonoPlugin_home_title:: |
function | |||
crumbs_CrumbsMonoPlugin_home_title:: |
function |