function entity_test_form_node_form_alter
Same name in other branches
- 9 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_form_node_form_alter()
- 10 core/modules/system/tests/modules/entity_test/entity_test.module \entity_test_form_node_form_alter()
Implements hook_form_BASE_FORM_ID_alter().
File
-
core/
modules/ system/ tests/ modules/ entity_test/ entity_test.module, line 353
Code
function entity_test_form_node_form_alter(&$form, FormStateInterface $form_state, $form_id) {
$langcode = $form_state->getFormObject()
->getFormLangcode($form_state);
\Drupal::state()->set('entity_test.form_langcode', $langcode);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.