public function ViewPaymentsByOwner::setCurrentUser in Payment 8.2
Sets the current user.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- src/
Plugin/ views/ argument_validator/ ViewPaymentsByOwner.php, line 42
Class
- ViewPaymentsByOwner
- Validates whether the current user has access to view a user's payments.
Namespace
Drupal\payment\Plugin\views\argument_validatorCode
public function setCurrentUser(AccountInterface $current_user) {
$this->currentUser = $current_user;
}