You are here

public function PaymentMethod::setLocked in Ubercart 8.4

Sets the lock status of this payment method.

Parameters

bool $locked: TRUE to lock payment method.

Return value

$this

Overrides PaymentMethodInterface::setLocked

File

payment/uc_payment/src/Entity/PaymentMethod.php, line 115

Class

PaymentMethod
Defines a configured payment method.

Namespace

Drupal\uc_payment\Entity

Code

public function setLocked($locked) {
  $this->locked = (bool) $locked;
  return $this;
}