public function ProfileFieldCopyInterface::alterForm in Commerce Shipping 8.2
Alters the inline form.
Adds the field copy checkbox ("Billing same as shipping'). Ensures that field values are copied on submit.
Parameters
array $inline_form: The inline form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
1 method overrides ProfileFieldCopyInterface::alterForm()
- ProfileFieldCopy::alterForm in src/
ProfileFieldCopy.php - Alters the inline form.
File
- src/
ProfileFieldCopyInterface.php, line 40
Class
- ProfileFieldCopyInterface
- Copies shared field values from the shipping profile to the billing profile.
Namespace
Drupal\commerce_shippingCode
public function alterForm(array &$inline_form, FormStateInterface $form_state);