protected function AutosaveFormAlterTrait::setAutosaveFormSessionID in Autosave Form 8
Sets the autosave form session ID into the form state.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
string $autosave_form_session_id: The autosave form session ID.
1 call to AutosaveFormAlterTrait::setAutosaveFormSessionID()
- AutosaveFormAlterTrait::formAlter in src/
Form/ AutosaveFormAlterTrait.php - Performs the needed alterations to the form.
File
- src/
Form/ AutosaveFormAlterTrait.php, line 268
Class
- AutosaveFormAlterTrait
- Provides a trait for common autosave form alterations.
Namespace
Drupal\autosave_form\FormCode
protected function setAutosaveFormSessionID(FormStateInterface $form_state, $autosave_form_session_id) {
$form_state
->set('autosave_form_session_id', $autosave_form_session_id);
}