public function ProfileAddressBookForm::form in Commerce Core 8.2
Gets the actual form array to be built.
Overrides ContentEntityForm::form
See also
\Drupal\Core\Entity\EntityForm::processForm()
\Drupal\Core\Entity\EntityForm::afterBuild()
File
- modules/
order/ src/ Form/ ProfileAddressBookForm.php, line 14
Class
Namespace
Drupal\commerce_order\FormCode
public function form(array $form, FormStateInterface $form_state) {
$form = parent::form($form, $form_state);
// Remove the details wrapper from the address widget.
$form['address']['widget'][0]['#type'] = 'container';
return $form;
}