Skip to content
Snippets Groups Projects

fix the Undefined type and background

2 files
+ 4
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -58,8 +58,9 @@ class GravatarGenerator extends AvatarGeneratorBase {
@@ -58,8 +58,9 @@ class GravatarGenerator extends AvatarGeneratorBase {
'wavatar' => $this->t('Wavatar'),
'wavatar' => $this->t('Wavatar'),
'retro' => $this->t('8-bit style avatar'),
'retro' => $this->t('8-bit style avatar'),
],
],
'#default_value' => $this->configuration['type'],
'#default_value' => isset($this->configuration['type']) ? $this->configuration['type'] : 'identicon', // Provide a default value here.
];
];
 
return $form;
return $form;
}
}
Loading