protected function EntityDefaultExtraFieldsController::generateExtraFieldInfo in Entity API 7
Generates the display field info for a given property.
1 call to EntityDefaultExtraFieldsController::generateExtraFieldInfo()
File
- ./
entity.info.inc, line 260 - Provides basic entity property info for entities provided via the CRUD API, as well as property info for all entity types defined by core. For that the respective modules/MODULE.info.inc files are included.
Class
- EntityDefaultExtraFieldsController
- Default controller for generating extra fields based on property metadata.
Code
protected function generateExtraFieldInfo($name, $property_info) {
$info = array(
'label' => $property_info['label'],
'weight' => 0,
);
if (!empty($property_info['description'])) {
$info['description'] = $property_info['description'];
}
return $info;
}