Split Animal type and Plant type vocabularies out to their own modules.

This is mainly for consistency with the other vocabs, in
case there are future modules that want to vocab without
the asset type (like we needed with Material Type). By
putting all vocabs in modules/taxonomy we make it easy to
quickly see all the vocabularies that farmOS provides in
both the file system and module list.

The one remaining exception is Crop Family, which is
included in the farm_plant_type module.
See https://www.drupal.org/project/farm/issues/3191115
This commit is contained in:
Michael Stenta 2021-09-08 07:12:25 -04:00
parent 2a52a82d4f
commit 6379e8b59f
19 changed files with 31 additions and 15 deletions

View File

@ -4,4 +4,5 @@ type: module
package: farmOS Assets
core_version_requirement: ^9
dependencies:
- farm:farm_animal_type
- farm:farm_entity

View File

@ -5,4 +5,5 @@ package: farmOS Assets
core_version_requirement: ^9
dependencies:
- farm:farm_entity
- farm:farm_plant_type
- farm:farm_season

View File

@ -3,7 +3,7 @@ status: true
dependencies:
enforced:
module:
- farm_animal
- farm_animal_type
name: Animal types
vid: animal_type
description: 'A list of animal species/breeds.'

View File

@ -0,0 +1,7 @@
name: Animal type vocabulary
description: Provides an Animal type vocabulary.
type: module
package: farmOS Taxonomies
core_version_requirement: ^9
dependencies:
- drupal:taxonomy

View File

@ -11,7 +11,7 @@ dependencies:
- taxonomy.vocabulary.plant_type
enforced:
module:
- farm_plant
- farm_plant_type
module:
- image
- text

View File

@ -10,7 +10,7 @@ dependencies:
- taxonomy.vocabulary.plant_type
enforced:
module:
- farm_plant
- farm_plant_type
module:
- image
- text

View File

@ -6,7 +6,7 @@ dependencies:
- taxonomy.vocabulary.plant_type
enforced:
module:
- farm_plant
- farm_plant_type
module:
- entity_reference_validators
third_party_settings:

View File

@ -7,7 +7,7 @@ dependencies:
- taxonomy.vocabulary.plant_type
enforced:
module:
- farm_plant
- farm_plant_type
id: taxonomy_term.plant_type.crop_family
field_name: crop_family
entity_type: taxonomy_term

View File

@ -6,7 +6,7 @@ dependencies:
- taxonomy.vocabulary.plant_type
enforced:
module:
- farm_plant
- farm_plant_type
module:
- image
id: taxonomy_term.plant_type.image

View File

@ -6,7 +6,7 @@ dependencies:
- taxonomy.vocabulary.plant_type
enforced:
module:
- farm_plant
- farm_plant_type
id: taxonomy_term.plant_type.maturity_days
field_name: maturity_days
entity_type: taxonomy_term

View File

@ -6,7 +6,7 @@ dependencies:
- taxonomy.vocabulary.plant_type
enforced:
module:
- farm_plant
- farm_plant_type
id: taxonomy_term.plant_type.transplant_days
field_name: transplant_days
entity_type: taxonomy_term

View File

@ -3,7 +3,7 @@ status: true
dependencies:
enforced:
module:
- farm_plant
- farm_plant_type
module:
- taxonomy
id: taxonomy_term.companions

View File

@ -3,7 +3,7 @@ status: true
dependencies:
enforced:
module:
- farm_plant
- farm_plant_type
module:
- taxonomy
id: taxonomy_term.crop_family

View File

@ -3,7 +3,7 @@ status: true
dependencies:
enforced:
module:
- farm_plant
- farm_plant_type
module:
- file
- image

View File

@ -3,7 +3,7 @@ status: true
dependencies:
enforced:
module:
- farm_plant
- farm_plant_type
module:
- taxonomy
id: taxonomy_term.maturity_days

View File

@ -3,7 +3,7 @@ status: true
dependencies:
enforced:
module:
- farm_plant
- farm_plant_type
module:
- taxonomy
id: taxonomy_term.transplant_days

View File

@ -3,7 +3,7 @@ status: true
dependencies:
enforced:
module:
- farm_plant
- farm_plant_type
name: Crop family
vid: crop_family
description: 'A list of crop families.'

View File

@ -3,7 +3,7 @@ status: true
dependencies:
enforced:
module:
- farm_plant
- farm_plant_type
name: Plant types
vid: plant_type
description: 'A list of crops/varieties.'

View File

@ -0,0 +1,7 @@
name: Plant type vocabulary
description: Provides an Plant type vocabulary.
type: module
package: farmOS Taxonomies
core_version_requirement: ^9
dependencies:
- drupal:taxonomy