Skip to content

Instantly share code, notes, and snippets.

@jordanlgraham
Last active November 23, 2019 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordanlgraham/9ab2ebf308195cc774dc95d7138c0abf to your computer and use it in GitHub Desktop.
Save jordanlgraham/9ab2ebf308195cc774dc95d7138c0abf to your computer and use it in GitHub Desktop.
Patch to google_adwords-8.x-1.0
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