Skip to content
Permalink
Browse files

[generate:form] Input missing was fixed (#4093)

* [update:execute] Fixed update table

* Revert "Merge remote-tracking branch 'upstream/master'"

This reverts commit ddf7739, reversing
changes made to a95b7e6.

* [generate:form] Input missing was fixed
  • Loading branch information...
harold20 authored and enzolutions committed Jun 17, 2019
1 parent 14dead1 commit 541cd2ecda5e1e071239507932d928a5fec735a0
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/module/src/Form/form.php.twig
@@ -115,7 +115,7 @@ class {{ class_name }} extends FormBase {% endblock %}
public function submitForm(array &$form, FormStateInterface $form_state) {
// Display result.
foreach ($form_state->getValues() as $key => $value) {
\Drupal::messenger()->addMessage($key . ': ' . $value{% if input.type == 'text_format' %}['value']{% endif %});
\Drupal::messenger()->addMessage($key . ': ' . ($key === 'text_format'?$value['value']:$value));
}
}
{% endblock %}

0 comments on commit 541cd2e

Please sign in to comment.
You can’t perform that action at this time.