public function PaymentGatewayForm::getInfo in Commerce Core 8.2
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides ElementInterface::getInfo
File
- modules/
payment/ src/ Element/ PaymentGatewayForm.php, line 37
Class
- PaymentGatewayForm
- Provides a form element for embedding the payment gateway forms.
Namespace
Drupal\commerce_payment\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#operation' => '',
// The entity operated on. Instance of EntityWithPaymentGatewayInterface.
'#default_value' => NULL,
'#process' => [
[
$class,
'attachElementSubmit',
],
[
$class,
'processForm',
],
],
'#element_validate' => [
[
$class,
'validateElementSubmit',
],
],
'#theme_wrappers' => [
'container',
],
];
}