BillTo.php in Ubercart 8.4
File
uc_order/src/Plugin/Ubercart/OrderPane/BillTo.php
View source
<?php
namespace Drupal\uc_order\Plugin\Ubercart\OrderPane;
use Drupal\Core\Form\FormStateInterface;
use Drupal\uc_order\OrderInterface;
class BillTo extends AddressPaneBase {
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;
}
}
Classes
Name |
Description |
BillTo |
Manage the order's billing address and contact information.. |