function page_cache_form_test_form_page_cache_form_test_alter
Same name and namespace in other branches
- 9 core/modules/page_cache/tests/modules/page_cache_form_test.module \page_cache_form_test_form_page_cache_form_test_alter()
- 8.9.x core/modules/page_cache/tests/modules/page_cache_form_test.module \page_cache_form_test_form_page_cache_form_test_alter()
- 10 core/modules/page_cache/tests/modules/page_cache_form_test.module \page_cache_form_test_form_page_cache_form_test_alter()
Implements hook_form_FORM_ID_alter().
File
-
core/
modules/ page_cache/ tests/ modules/ page_cache_form_test.module, line 13
Code
function page_cache_form_test_form_page_cache_form_test_alter(&$form, FormStateInterface $form_state, $form_id) {
// This runs earlier than system_form_alter() so we fore-go the immutability
// check to the process callback, by which time system_form_alter() has run.
$form['#process'][] = 'page_cache_form_test_form_page_cache_form_test_process';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.