public function PayPalStandard::processBuildConfigurationForm in PayPal for Payment 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Payment/MethodConfiguration/PayPalStandard.php \Drupal\paypal_payment\Plugin\Payment\MethodConfiguration\PayPalStandard::processBuildConfigurationForm()
Implements a form API #process callback.
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;
}