protected function PaymentForm::copyFormValuesToEntity in Payment 8.2
Copies top-level form values to entity properties
This should not change existing entity properties that are not being edited by this form.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity the current form should operate upon.
array $form: A nested array of form elements comprising the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ContentEntityForm::copyFormValuesToEntity
File
- modules/
payment_form/ src/ Entity/ Payment/ PaymentForm.php, line 154
Class
- PaymentForm
- Provides the payment form.
Namespace
Drupal\payment_form\Entity\PaymentCode
protected function copyFormValuesToEntity(EntityInterface $entity, array $form, FormStateInterface $form_state) {
// Remove this override once https://drupal.org/node/2409143 has been fixed.
$this
->getFormDisplay($form_state)
->extractFormValues($entity, $form, $form_state);
}