Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / templates / module / src / Form / form-config.php.twig
index 9dc7a7dcb37964a00685d789f0cd98da142e1d2f..1dc6e75f24b5c7ee13058d9e1853ab93485c7300 100644 (file)
@@ -20,8 +20,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
 {% block class_declaration %}
 /**
  * Class {{ class_name }}.
- *
- * @package Drupal\{{module_name}}\Form
  */
 class {{ class_name }} extends ConfigFormBase {% endblock %}
 {% block class_construct %}
@@ -82,7 +80,7 @@ class {{ class_name }} extends ConfigFormBase {% endblock %}
 {% endif %}
       '#type' => '{{ input.type }}',
       '#title' => $this->t('{{ input.label|e }}'),
-{% if input.description is defined and input.description is not empty %}
+{% if input.description is defined and input.description|length %}
       '#description' => $this->t('{{ input.description|e }}'),
 {% endif %}
 {% if input.options is defined and input.options is not empty %}