function commerce_shipping_commerce_inline_form_customer_profile_alter in Commerce Shipping 8.2
Implements hook_commerce_inline_form_PLUGIN_ID_alter().
File
- ./
commerce_shipping.module, line 136 - Provides core shipping functionality.
Code
function commerce_shipping_commerce_inline_form_customer_profile_alter(array &$inline_form, FormStateInterface $form_state, array &$complete_form) {
// Attach the "Billing same as shipping" element.
$profile_field_copy = \Drupal::service('commerce_shipping.profile_field_copy');
if ($profile_field_copy
->supportsForm($inline_form, $form_state)) {
$profile_field_copy
->alterForm($inline_form, $form_state);
}
}