class crumbs_CrumbsMonoPlugin_home_title in Crumbs, the Breadcrumbs suite 7.2
Same name and namespace in other branches
- 7 plugins/crumbs.crumbs.inc \crumbs_CrumbsMonoPlugin_home_title
Hierarchy
- class \crumbs_CrumbsMonoPlugin_home_title implements crumbs_MonoPlugin_FindTitleInterface
Expanded class hierarchy of crumbs_CrumbsMonoPlugin_home_title
File
- plugins/
crumbs.crumbs.inc, line 26
View source
class crumbs_CrumbsMonoPlugin_home_title implements crumbs_MonoPlugin_FindTitleInterface {
/**
* {@inheritdoc}
*/
function describe($api) {
$home_title = variable_get('crumbs_home_link_title', 'Home');
return t('Set t("@title") as the title for the root item.', array(
'@title' => $home_title,
));
}
/**
* {@inheritdoc}
*/
function findTitle($path, $item) {
if ('<front>' === $item['href']) {
$home_title = variable_get('crumbs_home_link_title', 'Home');
return t($home_title);
}
return NULL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
crumbs_CrumbsMonoPlugin_home_title:: |
function |
Overrides crumbs_MonoPlugin:: |
||
crumbs_CrumbsMonoPlugin_home_title:: |
function |
Find candidates for the parent path. Overrides crumbs_MonoPlugin_FindTitleInterface:: |