protected function EncryptionProfileForm::moveFormStateStorage in Encrypt 8.3
Moves storage variables from one form state to another.
Parameters
\Drupal\Core\Form\FormStateInterface $from: The form state object to move from.
\Drupal\Core\Form\FormStateInterface $to: The form state object to move to.
1 call to EncryptionProfileForm::moveFormStateStorage()
- EncryptionProfileForm::validateForm in src/
Form/ EncryptionProfileForm.php - Form validation handler.
File
- src/
Form/ EncryptionProfileForm.php, line 400
Class
- EncryptionProfileForm
- Provides the form to add / edit an EncryptionProfile entity.
Namespace
Drupal\encrypt\FormCode
protected function moveFormStateStorage(FormStateInterface $from, FormStateInterface $to) {
foreach ($from
->getStorage() as $index => $value) {
$to
->set($index, $value);
}
}