Put equipment field into asset field group of logs.

This commit is contained in:
Michael Stenta 2024-01-15 20:14:20 -05:00
parent c8b9fad4b6
commit 09677800a2
1 changed files with 12 additions and 0 deletions

View File

@ -32,3 +32,15 @@ function farm_equipment_farm_entity_bundle_field_info(EntityTypeInterface $entit
return $fields;
}
/**
* Implements hook_farm_ui_theme_field_group_items().
*/
function farm_equipment_farm_ui_theme_field_group_items(string $entity_type, string $bundle) {
if ($entity_type == 'log') {
return [
'equipment' => 'asset',
];
}
return [];
}