You are here

public function PaymentForm::setCurrentUser in Payment 8.2

Sets the current user.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

modules/payment_form/src/Entity/Payment/PaymentForm.php, line 85

Class

PaymentForm
Provides the payment form.

Namespace

Drupal\payment_form\Entity\Payment

Code

public function setCurrentUser(AccountInterface $current_user) {
  $this->currentUser = $current_user;
}