You are here

public function PaymentGatewayFormInterface::setEntity in Commerce Core 8.2

Sets the form entity.

Parameters

\Drupal\commerce_payment\Entity\EntityWithPaymentGatewayInterface $entity: The form entity.

Return value

$this

1 method overrides PaymentGatewayFormInterface::setEntity()
PaymentGatewayFormBase::setEntity in modules/payment/src/PluginForm/PaymentGatewayFormBase.php
Sets the form entity.

File

modules/payment/src/PluginForm/PaymentGatewayFormInterface.php, line 33

Class

PaymentGatewayFormInterface
Defines the interface for payment gateway plugin forms.

Namespace

Drupal\commerce_payment\PluginForm

Code

public function setEntity(EntityWithPaymentGatewayInterface $entity);