public function PaymentGateway::setWeight in Commerce Core 8.2
Sets the payment gateway weight.
Parameters
int $weight: The payment gateway weight.
Return value
$this
Overrides PaymentGatewayInterface::setWeight
File
- modules/
payment/ src/ Entity/ PaymentGateway.php, line 136
Class
- PaymentGateway
- Defines the payment gateway entity class.
Namespace
Drupal\commerce_payment\EntityCode
public function setWeight($weight) {
$this->weight = $weight;
return $weight;
}