Last active
November 23, 2019 04:13
-
-
Save jordanlgraham/9ab2ebf308195cc774dc95d7138c0abf to your computer and use it in GitHub Desktop.
Patch to google_adwords-8.x-1.0
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/src/Form/GoogleAdwordsAdminSettings.php b/src/Form/GoogleAdwordsAdminSettings.php | |
index 475067868..775bb9793 100644 | |
--- a/src/Form/GoogleAdwordsAdminSettings.php | |
+++ b/src/Form/GoogleAdwordsAdminSettings.php | |
@@ -45,7 +45,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { | |
parent::submitForm($form, $form_state); | |
} | |
- public function buildForm(array $form_state, \Drupal\Core\Form\FormStateInterface $form_state) { | |
+ public function buildForm(array $form, \Drupal\Core\Form\FormStateInterface $form_state) { | |
$form['conversion'] = [ | |
'#type' => 'fieldset', | |
@@ -126,7 +126,7 @@ public function buildForm(array $form_state, \Drupal\Core\Form\FormStateInterfac | |
'#title' => $this->t($role_name), | |
'#default_value' => // @FIXME: 'google_adwords_track_' . $role_varname must be added to your module's default configuration. | |
\Drupal::config('google_adwords.settings') | |
- ->get('google_adwords_track_' . $role_varname), | |
+ ->get('google_adwords_track_' . $role_name), | |
]; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment