public function PaymentGatewayFormInterface::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.
1 method overrides PaymentGatewayFormInterface::getErrorElement()
- PaymentGatewayFormBase::getErrorElement in modules/
payment/ src/ PluginForm/ PaymentGatewayFormBase.php - Gets the form element to which errors should be assigned.
File
- modules/
payment/ src/ PluginForm/ PaymentGatewayFormInterface.php, line 46
Class
- PaymentGatewayFormInterface
- Defines the interface for payment gateway plugin forms.
Namespace
Drupal\commerce_payment\PluginFormCode
public function getErrorElement(array $form, FormStateInterface $form_state);