X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Ftemplates%2Fmodule%2Fsrc%2FForm%2Fform-alter.php.twig;h=f4bf25b18c49b3acc313ca451acfe406bf748263;hp=748e9b8a4e76be0bf80ba08b63f7f04a69266e9f;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/drupal/console/templates/module/src/Form/form-alter.php.twig b/vendor/drupal/console/templates/module/src/Form/form-alter.php.twig index 748e9b8a4..f4bf25b18 100644 --- a/vendor/drupal/console/templates/module/src/Form/form-alter.php.twig +++ b/vendor/drupal/console/templates/module/src/Form/form-alter.php.twig @@ -34,16 +34,16 @@ function {{ module }}_form_alter(&$form, FormStateInterface $form_state, $form_i $form['{{ input.name }}'] = [ '#type' => '{{ input.type }}', '#title' => t('{{ input.label|e }}'), - {%- if input.description is defined -%} + {%- if input.description is defined and input.description is defined -%} '#description' => t('{{ input.description|e }}'), {% endif %} {%- if input.options is defined and input.options|length -%} '#options' => {{ input.options }}, {% endif %} - {%- if input.maxlength|length -%} + {%- if input.maxlength is defined and input.maxlength|length -%} '#maxlength' => {{ input.maxlength }}, {% endif %} - {%- if input.size|length -%} + {%- if input.size is defined and input.size|length -%} '#size' => {{ input.size }}, {% endif %} {%- if input.default_value is defined and input.default_value|length -%}