You are here

public function LoggerChannel::setCurrentUser in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Logger/LoggerChannel.php \Drupal\service_container\Logger\LoggerChannel::setCurrentUser()

Sets the current user.

Parameters

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

Overrides LoggerChannelInterface::setCurrentUser

File

src/Logger/LoggerChannel.php, line 110
Contains \Drupal\service_container\Logger\LoggerChannel.

Class

LoggerChannel
Defines a logger channel that most implementations will use.

Namespace

Drupal\service_container\Logger

Code

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