From ba346ab3bb112a1ff070af500e3a6a093c2f1436 Mon Sep 17 00:00:00 2001 From: Jotham Gates Date: Mon, 25 Apr 2022 12:29:36 +1000 Subject: [PATCH] Initial attempt at farm_owner update file --- modules/core/owner/farm_owner.install | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 modules/core/owner/farm_owner.install diff --git a/modules/core/owner/farm_owner.install b/modules/core/owner/farm_owner.install new file mode 100644 index 000000000..db110bb13 --- /dev/null +++ b/modules/core/owner/farm_owner.install @@ -0,0 +1,33 @@ + 'entity_reference', + 'label' => t('Assigned to'), + 'description' => t('Optionally assign this task to one or more people.'), + 'target_type' => 'user', + 'multiple' => TRUE, + 'weight' => [ + 'form' => -70, + 'view' => -70, + ], + ]; + $field_storage_definition = \Drupal::service('farm_field.factory')->baseFieldDefinition($field_info); + $entity_type = 'asset'; + \Drupal::entityDefinitionUpdateManager() + ->installFieldStorageDefinition($field_name, $entity_type, $entity_type, $field_storage_definition); +} + +/* + * Add the assign owner to asset configuration for bulk assigns + */ +// TODO: function hook_post_update_() \ No newline at end of file