Created
June 22, 2016 18:31
-
-
Save bangpound/5c8f2ef904dcebea602b7affaa0683da to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php b/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php | |
index b8197b2..190e47e 100644 | |
--- a/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php | |
+++ b/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php | |
@@ -121,24 +121,14 @@ public function finish(array &$form, FormStateInterface $form_state) { | |
*/ | |
protected function customizeForm(array $form, FormStateInterface $form_state) { | |
$form = parent::customizeForm($form, $form_state); | |
- if ($this->machine_name) { | |
- $entity = $this->entityTypeManager->getStorage($this->entityTypeId) | |
- ->load($this->machine_name); | |
- } | |
- else { | |
- $entity = NULL; | |
- } | |
$cached_values = $form_state->getTemporaryValue('wizard'); | |
- // If the entity already exists, allow for non-linear step interaction. | |
- if ($entity) { | |
- // Setup the step rendering theme element. | |
- $prefix = [ | |
- '#theme' => ['ctools_wizard_trail_links'], | |
- '#wizard' => $this, | |
- '#cached_values' => $cached_values, | |
- ]; | |
- $form['#prefix'] = \Drupal::service('renderer')->render($prefix); | |
- } | |
+ // Setup the step rendering theme element. | |
+ $prefix = [ | |
+ '#theme' => ['ctools_wizard_trail_links'], | |
+ '#wizard' => $this, | |
+ '#cached_values' => $cached_values, | |
+ ]; | |
+ $form['#prefix'] = \Drupal::service('renderer')->render($prefix); | |
return $form; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment