You are here

interface CustomerProfileAlterInterface in Drupal Commerce Connector for AvaTax 8

Interface for altering the customer profile inline form.

Hierarchy

Expanded class hierarchy of CustomerProfileAlterInterface

All classes that implement CustomerProfileAlterInterface

File

src/CustomerProfileAlterInterface.php, line 10

Namespace

Drupal\commerce_avatax
View 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

Namesort descending Modifiers Type Description Overrides
CustomerProfileAlterInterface::alter public function Alters the inline form to add address validation logic. 1
CustomerProfileAlterInterface::applies public function Gets whether the given customer profile inline form is supported. 1