From 2986e3692ef75902fa27c5c355600079cc8e2060 Mon Sep 17 00:00:00 2001 From: matze Date: Thu, 12 Dec 2024 17:47:57 +0100 Subject: [PATCH] added work_type and chemical taxonomies --- config/install/taxonomy.vocabulary.chemical.yml | 11 +++++++++++ config/install/taxonomy.vocabulary.work_type.yml | 11 +++++++++++ src/Plugin/Log/LogType/WorkLog.php | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 config/install/taxonomy.vocabulary.chemical.yml create mode 100644 config/install/taxonomy.vocabulary.work_type.yml diff --git a/config/install/taxonomy.vocabulary.chemical.yml b/config/install/taxonomy.vocabulary.chemical.yml new file mode 100644 index 0000000..df38e58 --- /dev/null +++ b/config/install/taxonomy.vocabulary.chemical.yml @@ -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 \ No newline at end of file diff --git a/config/install/taxonomy.vocabulary.work_type.yml b/config/install/taxonomy.vocabulary.work_type.yml new file mode 100644 index 0000000..7c01742 --- /dev/null +++ b/config/install/taxonomy.vocabulary.work_type.yml @@ -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 \ No newline at end of file diff --git a/src/Plugin/Log/LogType/WorkLog.php b/src/Plugin/Log/LogType/WorkLog.php index 08d7432..645e067 100644 --- a/src/Plugin/Log/LogType/WorkLog.php +++ b/src/Plugin/Log/LogType/WorkLog.php @@ -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,