Skip to content

Commit

Permalink
Add a default value for the field widget choice in field:create (#5060)
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterHolvoet committed Feb 1, 2022
1 parent b775b69 commit e3a3c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/Commands/field/FieldCreateCommands.php
Expand Up @@ -315,7 +315,7 @@ protected function askFieldWidget(): string
$choices[$name] = $label;
}

return $this->io()->choice('Field widget', $choices);
return $this->io()->choice('Field widget', $choices, key($choices));
}

protected function askRequired(): bool
Expand Down

0 comments on commit e3a3c2d

Please sign in to comment.