function content_translation_test_form_node_form_submit

Same name in other branches
  1. 9 core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module \content_translation_test_form_node_form_submit()
  2. 8.9.x core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module \content_translation_test_form_node_form_submit()
  3. 10 core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module \content_translation_test_form_node_form_submit()

Form submission handler for custom field added based on a request parameter.

See also

content_translation_test_form_node_article_form_alter()

1 string reference to 'content_translation_test_form_node_form_submit'
content_translation_test_form_node_form_alter in core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module
Implements hook_form_BASE_FORM_ID_alter().

File

core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module, line 70

Code

function content_translation_test_form_node_form_submit($form, FormStateInterface $form_state) {
    \Drupal::state()->set('test_field_only_en_fr', $form_state->getValue('test_field_only_en_fr'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.