public static function ProfileFieldCopy::ajaxRefresh in Commerce Shipping 8.2
Ajax callback.
File
- src/
ProfileFieldCopy.php, line 182
Class
- ProfileFieldCopy
- Default implementation of profile field copying ("Billing same as shipping").
Namespace
Drupal\commerce_shippingCode
public static function ajaxRefresh(array &$form, FormStateInterface $form_state) {
$triggering_element = $form_state
->getTriggeringElement();
$inline_form = NestedArray::getValue($form, array_slice($triggering_element['#array_parents'], 0, -2));
return $inline_form;
}