public static function WebformComputedBase::submitWebformComputedCallback in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformComputedBase.php \Drupal\webform\Element\WebformComputedBase::submitWebformComputedCallback()
Webform computed element submit callback.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
File
- src/
Element/ WebformComputedBase.php, line 248
Class
- WebformComputedBase
- Provides a base class for 'webform_computed' elements.
Namespace
Drupal\webform\ElementCode
public static function submitWebformComputedCallback(array $form, FormStateInterface $form_state) {
// Only rebuild if the request is not using Ajax.
if (!static::isAjax()) {
$form_state
->setRebuild();
}
}