You are here

public function FormTestStoragePageCacheForm::form_test_storage_page_cache_old_build_id in Drupal 9

Same name and namespace in other branches
  1. 8 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\Form

Code

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;
}