function page_cache_form_test_module_implements_alter
Same name and namespace in other branches
- 9 core/modules/page_cache/tests/modules/page_cache_form_test.module \page_cache_form_test_module_implements_alter()
- 8.9.x core/modules/page_cache/tests/modules/page_cache_form_test.module \page_cache_form_test_module_implements_alter()
- 10 core/modules/page_cache/tests/modules/page_cache_form_test.module \page_cache_form_test_module_implements_alter()
Implements hook_module_implements_alter().
File
-
core/
modules/ page_cache/ tests/ modules/ page_cache_form_test.module, line 35
Code
function page_cache_form_test_module_implements_alter(&$implementations, $hook) {
if ($hook === 'form_alter' && \Drupal::state()->get('page_cache_bypass_form_immutability', FALSE)) {
// Disable system_form_alter
unset($implementations['system']);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.