protected static function PathBreadcrumbsUIAutocomplete::getEntityInfo in Path Breadcrumbs 7.3
Return information about entity.
Parameters
$context_type: Entity type.
Return value
array
2 calls to PathBreadcrumbsUIAutocomplete::getEntityInfo()
- PathBreadcrumbsUIAutocomplete::applyCurrentVariables in path_breadcrumbs_ui/
includes/ path_breadcrumbs_ui.autocomplete.inc - Wrap all available entities in entity metadata wrapper.
- PathBreadcrumbsUIAutocomplete::applyDataSelector in path_breadcrumbs_ui/
includes/ path_breadcrumbs_ui.autocomplete.inc
File
- path_breadcrumbs_ui/
includes/ path_breadcrumbs_ui.autocomplete.inc, line 217 - Path breadcrumbs UI autocomplete.
Class
- PathBreadcrumbsUIAutocomplete
- @file Path breadcrumbs UI autocomplete.
Code
protected static function getEntityInfo($context_type) {
$entity_info = PathBreadcrumbsUIAutocomplete::defaultEntityInfo();
if (isset($entity_info[$context_type])) {
$info = $entity_info[$context_type];
}
else {
$info = $entity_info['default'];
if ($enity_info = entity_get_info($context_type)) {
$info += $enity_info;
}
}
return $info;
}