function commerce_shipping_weight_tariff_form_commerce_shipping_method_form_alter in Commerce Shipping Weight Tariff 8.2
Same name and namespace in other branches
- 8 commerce_shipping_weight_tariff.module \commerce_shipping_weight_tariff_form_commerce_shipping_method_form_alter()
Implements commerce_shipping_method_form alter.
Parameters
array $form: Form elements array.
\Drupal\Core\Form\FormStateInterface $form_state: Form state object.
mixed $form_id: The form id.
File
- ./
commerce_shipping_weight_tariff.module, line 21 - Contains Drupal hooks.
Code
function commerce_shipping_weight_tariff_form_commerce_shipping_method_form_alter(array &$form, FormStateInterface $form_state, $form_id) {
$form['#attached']['library'][] = 'commerce_shipping_weight_tariff/condition_states_logic';
}