Skip to content

Commit

Permalink
Wrap default value with quotes (#3944)
Browse files Browse the repository at this point in the history
  • Loading branch information
LOBsTerr authored Apr 5, 2019
1 parent dafe9ea commit d7bf425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/module/src/Form/form.php.twig
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class {{ class_name }} extends FormBase {% endblock %}
'#size' => {{ input.size }},
{% endif %}
{% if input.default_value is defined and input.default_value|length %}
'#default_value' => {{ input.default_value }},
'#default_value' => '{{ input.default_value }}',
{% endif %}
{% if input.weight is defined and input.weight|length %}
'#weight' => '{{ input.weight }}',
Expand Down

0 comments on commit d7bf425

Please sign in to comment.