3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Add form/view display weights to equipment base field definition.

This commit is contained in:
Michael Stenta 2020-12-10 06:07:56 -05:00
parent 8b25590ad8
commit ee915a815f

View file

@ -26,6 +26,10 @@ function farm_equipment_entity_base_field_info(EntityTypeInterface $entity_type)
'description' => t('What equipment was used?'),
'target_type' => 'asset',
'multiple' => TRUE,
'weight' => [
'form' => 55,
'view' => -5,
],
];
$field = farm_field_base_field_definition($options);
$field->setSetting('handler', 'default:asset');