function FormTestStoragePageCacheForm::form_test_storage_page_cache_old_build_id
Same name in other branches
- 8.9.x core/modules/system/tests/modules/form_test/src/Form/FormTestStoragePageCacheForm.php \Drupal\form_test\Form\FormTestStoragePageCacheForm::form_test_storage_page_cache_old_build_id()
- 10 core/modules/system/tests/modules/form_test/src/Form/FormTestStoragePageCacheForm.php \Drupal\form_test\Form\FormTestStoragePageCacheForm::form_test_storage_page_cache_old_build_id()
- 11.x core/modules/system/tests/modules/form_test/src/Form/FormTestStoragePageCacheForm.php \Drupal\form_test\Form\FormTestStoragePageCacheForm::form_test_storage_page_cache_old_build_id()
Form element #after_build callback: output the old form build-id.
File
-
core/
modules/ system/ tests/ modules/ form_test/ src/ Form/ FormTestStoragePageCacheForm.php, line 57
Class
- FormTestStoragePageCacheForm
- Form to test page cache storage.
Namespace
Drupal\form_test\FormCode
public function form_test_storage_page_cache_old_build_id($form) {
if (isset($form['#build_id_old'])) {
$form['test_build_id_old']['#plain_text'] = $form['#build_id_old'];
}
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.