public function PaymentGatewayFormBase::setEntity in Commerce Core 8.2
Sets the form entity.
Parameters
\Drupal\commerce_payment\Entity\EntityWithPaymentGatewayInterface $entity: The form entity.
Return value
$this
Overrides PaymentGatewayFormInterface::setEntity
File
- modules/
payment/ src/ PluginForm/ PaymentGatewayFormBase.php, line 38
Class
- PaymentGatewayFormBase
- Provides a base class for payment gateway plugin forms.
Namespace
Drupal\commerce_payment\PluginFormCode
public function setEntity(EntityWithPaymentGatewayInterface $entity) {
$this->entity = $entity;
return $this;
}