function LoggerChannelInterface::setCurrentUser

Same name in other branches
  1. 9 core/lib/Drupal/Core/Logger/LoggerChannelInterface.php \Drupal\Core\Logger\LoggerChannelInterface::setCurrentUser()
  2. 8.9.x core/lib/Drupal/Core/Logger/LoggerChannelInterface.php \Drupal\Core\Logger\LoggerChannelInterface::setCurrentUser()
  3. 10 core/lib/Drupal/Core/Logger/LoggerChannelInterface.php \Drupal\Core\Logger\LoggerChannelInterface::setCurrentUser()

Sets the current user.

Parameters

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

1 method overrides LoggerChannelInterface::setCurrentUser()
LoggerChannel::setCurrentUser in core/lib/Drupal/Core/Logger/LoggerChannel.php
Sets the current user.

File

core/lib/Drupal/Core/Logger/LoggerChannelInterface.php, line 51

Class

LoggerChannelInterface
Logger channel interface.

Namespace

Drupal\Core\Logger

Code

public function setCurrentUser(?AccountInterface $current_user = NULL);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.