You are here

public function FormBuilder::setCache in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::setCache()
  2. 9 core/lib/Drupal/Core/Form/FormBuilder.php \Drupal\Core\Form\FormBuilder::setCache()

File

core/lib/Drupal/Core/Form/FormBuilder.php, line 457

Class

FormBuilder
Provides form building and processing.

Namespace

Drupal\Core\Form

Code

public function setCache($form_build_id, $form, FormStateInterface $form_state) {
  $this->formCache
    ->setCache($form_build_id, $form, $form_state);
}