Skip to content
Snippets Groups Projects
Commit bfa7f37d authored by Erik Seifert's avatar Erik Seifert
Browse files

Fix: Typo and error in webform module

parent 0c30472a
No related branches found
No related tags found
No related merge requests found
......@@ -63,12 +63,15 @@ class Submissions extends DashboardBase {
* {@inheritdoc}
*/
public function buildSettingsForm(array $form, FormStateInterface $form_state, array $configuration): array {
$webform = $this->entityTypeManager->getStorage('webform')->load($configuration['webform']);
$webform = FALSE;
if (!empty($configuration['webform'])) {
$webform = $this->entityTypeManager->getStorage('webform')->load($configuration['webform']);
}
$form['webform'] = [
'#type' => 'entity_autocomplete',
'#target_type' => 'webform',
'#selection_handler' => 'default',
'#default_value' => ($webform) ? $webform : NULL,
'#default_value' => $webform,
];
$form['period'] = [
'#type' => 'select',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment