protected static function PathBreadcrumbsUIAutocomplete::defaultEntityInfo in Path Breadcrumbs 7.3
Provides default information about entities.
Return value
mixed
1 call to PathBreadcrumbsUIAutocomplete::defaultEntityInfo()
- PathBreadcrumbsUIAutocomplete::getEntityInfo in path_breadcrumbs_ui/
includes/ path_breadcrumbs_ui.autocomplete.inc - Return information about entity.
File
- path_breadcrumbs_ui/
includes/ path_breadcrumbs_ui.autocomplete.inc, line 238 - Path breadcrumbs UI autocomplete.
Class
- PathBreadcrumbsUIAutocomplete
- @file Path breadcrumbs UI autocomplete.
Code
protected static function defaultEntityInfo() {
// Add a variable for accessing site-wide data properties.
$vars['site'] = array(
'type' => 'site',
'label' => t('Site information'),
'description' => t('Site-wide settings and other global information.'),
'property info alter' => array(
'PathBreadcrumbsUIAutocomplete',
'addSiteMetadata',
),
'property info' => array(),
'optional' => TRUE,
);
// Add default property alter for other entities.
$vars['default'] = array(
'property info alter' => array(
'PathBreadcrumbsUIAutocomplete',
'processPropertyInfo',
),
);
return $vars;
}