function ExposedFormCache::setForm
Same name in other branches
- 8.9.x core/modules/views/src/ExposedFormCache.php \Drupal\views\ExposedFormCache::setForm()
- 10 core/modules/views/src/ExposedFormCache.php \Drupal\views\ExposedFormCache::setForm()
- 11.x core/modules/views/src/ExposedFormCache.php \Drupal\views\ExposedFormCache::setForm()
Save the Views exposed form for later use.
Parameters
string $view_id: The views ID.
string $display_id: The current view display name.
array $form_output: The form structure. Only needed when inserting the value.
File
-
core/
modules/ views/ src/ ExposedFormCache.php, line 29
Class
- ExposedFormCache
- Caches exposed forms, as they are heavy to generate.
Namespace
Drupal\viewsCode
public function setForm($view_id, $display_id, array $form_output) {
// Save the form output.
$views_exposed[$view_id][$display_id] = $form_output;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.