interface CustomerProfileAlterInterface in Drupal Commerce Connector for AvaTax 8
Interface for altering the customer profile inline form.
Hierarchy
- interface \Drupal\commerce_avatax\CustomerProfileAlterInterface
Expanded class hierarchy of CustomerProfileAlterInterface
All classes that implement CustomerProfileAlterInterface
File
- src/
CustomerProfileAlterInterface.php, line 10
Namespace
Drupal\commerce_avataxView source
interface CustomerProfileAlterInterface {
/**
* Gets whether the given customer profile inline form is supported.
*
* @param array $inline_form
* The inline form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*
* @return bool
* TRUE if the customer profile inline form is supported, FALSE otherwise.
*/
public function applies(array &$inline_form, FormStateInterface $form_state);
/**
* Alters the inline form to add address validation logic.
*
* @param array $inline_form
* The inline form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
*/
public function alter(array &$inline_form, FormStateInterface $form_state);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CustomerProfileAlterInterface:: |
public | function | Alters the inline form to add address validation logic. | 1 |
CustomerProfileAlterInterface:: |
public | function | Gets whether the given customer profile inline form is supported. | 1 |