public function PayPalStandard::processBuildConfigurationForm in PayPal for Payment 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Payment/MethodConfiguration/PayPalStandard.php \Drupal\paypal_payment\Plugin\Payment\MethodConfiguration\PayPalStandard::processBuildConfigurationForm()
Overrides PayPalBasic::processBuildConfigurationForm
File
- src/
Plugin/ Payment/ MethodConfiguration/ PayPalStandard.php, line 32
Class
- PayPalStandard
- Provides the configuration for the PayPal Standard payment method plugin.
Namespace
Drupal\paypal_payment\Plugin\Payment\MethodConfigurationCode
public function processBuildConfigurationForm(array &$element, FormStateInterface $form_state, array &$form) {
parent::processBuildConfigurationForm($element, $form_state, $form);
$element['paypal']['email'] = [
'#type' => 'email',
'#title' => $this
->t('Email'),
'#default_value' => $this
->getEmail(),
'#maxlength' => 255,
'#required' => TRUE,
];
return $element;
}