diff --git a/src/Form/ConditionalFieldForm.php b/src/Form/ConditionalFieldForm.php index 65374738be739ce133726fce306d8d4d7d7df1de..f5dec8411877d6abeabf6bb714dd5230ac8e7afe 100644 --- a/src/Form/ConditionalFieldForm.php +++ b/src/Form/ConditionalFieldForm.php @@ -310,10 +310,10 @@ class ConditionalFieldForm extends FormBase { ->getStorage('entity_form_display') ->load("$this->entity_type.$this->bundle_name.default"); - if (empty($form_display_entity) && $entity_type == 'taxonomy_term') { + if (empty($form_display_entity) && $this->entity_type == 'taxonomy_term') { $form_display_entity = $this->entityTypeManager->getStorage('entity_form_display')->create([ 'targetEntityType' => 'taxonomy_term', - 'bundle' => $bundle_name, + 'bundle' => $this->bundle_name, 'mode' => 'default', 'status' => TRUE, ]);