You are here

public function PaymentGatewayFormBase::getErrorElement in Commerce Core 8.2

Gets the form element to which errors should be assigned.

Parameters

array $form: The form, as built by buildConfigurationForm().

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

Return value

array The form element.

Overrides PaymentGatewayFormInterface::getErrorElement

1 method overrides PaymentGatewayFormBase::getErrorElement()
PaymentMethodAddForm::getErrorElement in modules/payment/src/PluginForm/PaymentMethodAddForm.php
Gets the form element to which errors should be assigned.

File

modules/payment/src/PluginForm/PaymentGatewayFormBase.php, line 46

Class

PaymentGatewayFormBase
Provides a base class for payment gateway plugin forms.

Namespace

Drupal\commerce_payment\PluginForm

Code

public function getErrorElement(array $form, FormStateInterface $form_state) {
  return $form;
}