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,