content_translation_test.module
Same filename in other branches
- 9 core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module
- 8.9.x core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module
- 10 core/modules/content_translation/tests/modules/content_translation_test/content_translation_test.module
File
-
core/
modules/ content_translation/ tests/ modules/ content_translation_test/ content_translation_test.module
View source
<?php
/**
* @file
* Helper module for the Content Translation tests.
*/
declare (strict_types=1);
use Drupal\Core\Form\FormStateInterface;
/**
* Form submission handler for custom field added based on a request parameter.
*
* @see content_translation_test_form_node_article_form_alter()
*/
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'));
}
Functions
Title | Deprecated | Summary |
---|---|---|
content_translation_test_form_node_form_submit | Form submission handler for custom field added based on a request parameter. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.