You are here

public function FilterPaymentGatewaysEvent::setPaymentGateways in Commerce Core 8.2

Sets the payment gateways.

Parameters

\Drupal\commerce_payment\Entity\PaymentGatewayInterface[] $payment_gateways: The payment gateways.

Return value

$this

File

modules/payment/src/Event/FilterPaymentGatewaysEvent.php, line 60

Class

FilterPaymentGatewaysEvent
Defines the event for filtering the available payment gateways.

Namespace

Drupal\commerce_payment\Event

Code

public function setPaymentGateways(array $payment_gateways) {
  $this->paymentGateways = $payment_gateways;
  return $this;
}