public function PaymentGatewayFormBase::getEntity in Commerce Core 8.2
Gets the form entity.
Allows the parent form to get the updated form entity after submitForm() performs the final changes.
Return value
\Drupal\commerce_payment\Entity\EntityWithPaymentGatewayInterface The form entity.
Overrides PaymentGatewayFormInterface::getEntity
File
- modules/
payment/ src/ PluginForm/ PaymentGatewayFormBase.php, line 31
Class
- PaymentGatewayFormBase
- Provides a base class for payment gateway plugin forms.
Namespace
Drupal\commerce_payment\PluginFormCode
public function getEntity() {
return $this->entity;
}