public static function PathBreadcrumbsUIAutocomplete::processPropertyInfo in Path Breadcrumbs 7.3
Applies all bundles fields to property fields of entity.
Parameters
EntityMetadataWrapper $wrapper:
$property_info:
Return value
mixed
File
- path_breadcrumbs_ui/
includes/ path_breadcrumbs_ui.autocomplete.inc, line 177 - Path breadcrumbs UI autocomplete.
Class
- PathBreadcrumbsUIAutocomplete
- @file Path breadcrumbs UI autocomplete.
Code
public static function processPropertyInfo(EntityMetadataWrapper $wrapper, $property_info) {
$bundles_properties = array();
if (!empty($property_info['bundles'])) {
$bundles = $property_info['bundles'];
foreach ($bundles as $bundle) {
if (!empty($bundle['properties'])) {
$bundles_properties += $bundle['properties'];
}
}
}
$property_info['properties'] += $bundles_properties;
return $property_info;
}