paul121
299ff56ee0
Allow log and asset geometry to be populated from the file field.
2021-09-01 22:47:08 -04:00
paul121
70ad63479d
Allow geojson and gpx file extensions.
2021-09-01 22:47:08 -04:00
Michael Stenta
cdfe4dc5a4
Move log quantity base field definition to farm_log_quantity module.
...
The farm_inventory module had an implicit dependency on this
field, so by moving this out to its own module we can depend
on it explicitly without adding a dependency on farm_entity
as a whole.
2021-07-22 17:40:16 -04:00
paul121
abb2dc72c7
Add schema for hideable_boolean field formatter.
...
Schema was missing which caused config inspector errors when creating
map_popup display config for assets. We didn't catch this before because
our default display mode is not saved in config.
2021-06-08 22:38:09 -04:00
paul121
2c89b25a69
Fix file field handler.
2021-05-08 14:26:41 -07:00
paul121
a5078847b9
Data stream entity reference fields use the inline_entity_form_complex form widget.
2021-04-01 11:22:27 -04:00
paul121
3c871623f6
Add data_stream as a supported target_type for entity_reference fields in FarmFieldFactory.
2021-04-01 11:22:27 -04:00
Michael Stenta
b5f5a1da8f
Add an Inventory field formatter and display current inventory on asset pages.
2021-03-27 14:44:42 -04:00
Michael Stenta
1811ce05d1
Add Inventory field support to farm.field_factory.
2021-03-25 18:42:03 -04:00
paul121
c5548eab72
Support fraction fields in FarmFieldFactory.
2021-03-12 08:15:56 -05:00
paul121
070b918c34
Create hideable_boolean field formatter.
2021-02-23 09:02:46 -05:00
Michael Stenta
c42bd1f4c3
Override formElement() to remove "Leave blank to use the time of form submission." from description.
2021-02-22 11:12:59 -05:00
paul121
0416267cf9
Use the datetime_timestamp_optional field widget.
2021-02-22 10:50:48 -05:00
paul121
79693d28dc
Add datetime_timestamp_optional field widget for timestamp fields.
2021-02-22 10:50:47 -05:00
paul121
62c30d13c9
Use the farm_map_geofield widget and formatter.
2021-02-10 06:53:28 -05:00
Michael Stenta
aca2b14f2d
Always auto_create the same target_bundle.
2021-02-05 14:48:48 -05:00
paul121
cda1ac8015
Allow default form and view display options to be overridden.
2021-02-05 14:41:48 -05:00
paul121
11c2746e5b
Allow taxonomy_term reference fields to be auto created.
2021-02-05 14:41:48 -05:00
Michael Stenta
c0b2431a4c
Use an Entity Reference Revisions field for Quantities.
2021-02-05 12:23:20 -05:00
Michael Stenta
c67dcec359
Create new revisions when quantities are saved.
2021-02-05 12:23:20 -05:00
Michael Stenta
307dee9e9c
Add quantity field form/view display settings.
2021-02-05 12:23:20 -05:00
Michael Stenta
3e056d4704
Move inline_entity_form dependency to farm_field.
2021-02-05 12:23:20 -05:00
Michael Stenta
f9adbf5a96
Add support for generating Quantity reference fields in FarmFieldFactory.
2021-02-05 12:23:20 -05:00
paul121
ec9efe8cf8
Replace FieldDefinitionInterface with BaseFieldDefinition.
...
This fixes type hinting errors in the IDE. Many of the methods used
here are actually defined in BaseFieldDefinition, not
FieldDefinitionInterface.
2021-01-22 14:06:05 -05:00
Michael Stenta
900ad506a9
Add the ability to hide fields in either form or view displays.
2020-12-29 12:26:04 -05:00
paul121
645acbf1de
Display the geofield field label inline to distinguish geometry from current_geometry.
2020-12-29 12:26:04 -05:00
paul121
86fd79680d
Allow computed fields to be defined with FarmFieldFactory.
2020-12-29 12:26:04 -05:00
Michael Stenta
724dc6f5a3
Allow making fields required in FarmFieldFactory.
2020-12-29 06:55:37 -05:00
Michael Stenta
b26317a89b
Allow specifying target_bundle for assets via FarmFieldFactory, instead of using the Views handler.
2020-12-17 07:49:29 -05:00
Michael Stenta
8d19ae8292
Split FarmFieldFactory out to a new farm_field module.
2020-12-14 10:07:58 -05:00
Michael Stenta
00d1786ccf
Rename farm_field to farm_entity.
2020-12-14 10:07:58 -05:00
Michael Stenta
915fd6c458
Show via test that modules extending a base entity plugin class cannot override default bundle fields provided by hook_farm_entity_bundle_field_info().
2020-12-14 10:07:58 -05:00
Michael Stenta
c4e1b5be49
Allow modules that extend base entity plugin classes to modify default bundle fields provided by their parent.
2020-12-14 10:07:58 -05:00
Michael Stenta
79eb5fb323
Convert Equipment used field to a bundle field. Move tests to farm_field module.
2020-12-14 10:07:58 -05:00
Michael Stenta
261af99b58
Move logic for adding ID Tag field into farm_field module.
2020-12-14 10:07:58 -05:00
Michael Stenta
57daded833
Move logic for adding Flag field into farm_field module.
2020-12-14 10:07:58 -05:00
Michael Stenta
dbc51b1365
Add tests for Log Geometry and Plan Asset and Log bundle fields.
2020-12-14 10:07:58 -05:00
Michael Stenta
28ee05b41a
Add FarmAssetType, FarmLogType, and FarmPlanType entity bundle plugin base classes.
2020-12-14 10:07:58 -05:00
Michael Stenta
b956b83541
Split filter.format.default out to a new farm_format module.
2020-12-14 10:07:58 -05:00
Michael Stenta
6d1bce37bc
Issue #3188055 : Provide a hook for adding bundle fields
2020-12-14 10:07:58 -05:00
Michael Stenta
6e9de7ba0e
Add support for log reference fields in FarmFieldFactory.
2020-12-13 08:34:49 -05:00
Michael Stenta
45b29a91d1
Alphabetize farm_field dependencies.
2020-12-13 08:34:49 -05:00
Michael Stenta
496e9436ed
The farm_field module depends on entity.
2020-12-13 08:34:49 -05:00
Michael Stenta
84dc39d9e2
Convert all log config fields to bundle fields.
2020-12-13 08:34:49 -05:00
Michael Stenta
273daf9697
Move field definition functions to farm_field.factory service.
2020-12-13 08:34:49 -05:00
Michael Stenta
b274490b19
Add Geometry as a bundle field definition so that it is stored in a dedicated table.
2020-12-13 08:34:49 -05:00
Michael Stenta
bd6faab922
Add support for log bundle plugins.
2020-12-13 08:34:49 -05:00
Michael Stenta
3d22b3d677
Revert "Put all base fields in dedicated tables unless told otherwise."
...
This reverts commit 21131801f8dcd08100ccac3e9c1bfde6c29d50c2.
2020-12-12 07:16:41 -05:00
Michael Stenta
46dab75f09
Add a farm_field_bundle_field_definition() function that uses Entity API's BundleFieldDefinition instead of core BaseFieldDefinition.
2020-12-12 07:16:41 -05:00
Michael Stenta
5260f98a80
Put all base fields in dedicated tables unless told otherwise.
2020-12-12 07:16:41 -05:00