You are here

public function ProfileFieldCopyInterface::supportsForm in Commerce Shipping 8.2

Gets whether the given inline form is supported.

Confirms that:

  • The inline form is used for billing information.
  • The inline form is embedded on a shippable order's page.

Parameters

array $inline_form: The inline form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

bool TRUE if the element can be attached, FALSE otherwise.

1 method overrides ProfileFieldCopyInterface::supportsForm()
ProfileFieldCopy::supportsForm in src/ProfileFieldCopy.php
Gets whether the given inline form is supported.

File

src/ProfileFieldCopyInterface.php, line 27

Class

ProfileFieldCopyInterface
Copies shared field values from the shipping profile to the billing profile.

Namespace

Drupal\commerce_shipping

Code

public function supportsForm(array &$inline_form, FormStateInterface $form_state);