You are here

public function BillTo::buildForm in Ubercart 8.4

Form constructor.

Parameters

\Drupal\uc_order\OrderInterface $order: The order that is being viewed.

array $form: An array containing the structure of the form.

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

Return value

array The form structure.

Overrides AddressPaneBase::buildForm

File

uc_order/src/Plugin/Ubercart/OrderPane/BillTo.php, line 22

Class

BillTo
Manage the order's billing address and contact information..

Namespace

Drupal\uc_order\Plugin\Ubercart\OrderPane

Code

public function buildForm(OrderInterface $order, array $form, FormStateInterface $form_state) {
  $form = parent::buildForm($order, $form, $form_state);
  $form['copy-address-image']['#attributes'] = [
    'id' => 'copy-shipping-to-billing',
  ];
  $form['copy-address-image']['#title'] = $this
    ->t('Copy shipping information.');
  $form['copy-address-image']['#alt'] = $this
    ->t('Copy shipping information.');
  return $form;
}