You are here

public function CurrentAuthenticatedUser::setCurrentUser in Search API Saved Searches 8

Sets the current user.

Parameters

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

Return value

$this

File

src/Plugin/views/argument_validator/CurrentAuthenticatedUser.php, line 73

Class

CurrentAuthenticatedUser
Validates whether the argument matches the current authenticated user.

Namespace

Drupal\search_api_saved_searches\Plugin\views\argument_validator

Code

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