Skip to content

Commit

Permalink
[generate:form] Input missing was fixed (#4093)
Browse files Browse the repository at this point in the history
* [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
hjuarez20 authored and enzolutions committed Jun 17, 2019
1 parent 14dead1 commit 541cd2e
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 @@ -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.