added work_type and chemical taxonomies

This commit is contained in:
2024-12-12 17:47:57 +01:00
parent 07a7b33f89
commit 2986e3692e
3 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
langcode: en
status: true
dependencies:
enforced:
module:
- farm_agrikern
name: 'Chemical'
vid: chemical
description: 'A list of available chemicals.'
weight: 0
new_revision: false

View File

@@ -0,0 +1,11 @@
langcode: en
status: true
dependencies:
enforced:
module:
- farm_agrikern
name: 'Work type'
vid: work_type
description: 'A list of available types of work.'
weight: 0
new_revision: false

View File

@@ -20,7 +20,7 @@ class WorkLog extends FarmLogType {
'label' => $this->t('Work'),
'description' => $this->t("What type of work was done?"),
'target_type' => 'taxonomy_term',
'target_bundle' => 'work',
'target_bundle' => 'work_type',
'auto_create' => FALSE,
'required' => TRUE,
'multiple' => FALSE,