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:
parent
8b25590ad8
commit
ee915a815f
1 changed files with 4 additions and 0 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue