function FormBuilder::setCache

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

Overrides FormCacheInterface::setCache

2 calls to FormBuilder::setCache()
FormBuilder::processForm in core/lib/Drupal/Core/Form/FormBuilder.php
Processes a form submission.
FormBuilder::rebuildForm in core/lib/Drupal/Core/Form/FormBuilder.php
Constructs a new $form from the information in $form_state.

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.