function 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.