public function LoggerChannelInterface::setCurrentUser in Service Container 7
Same name and namespace in other branches
- 7.2 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 src/
Logger/ LoggerChannel.php - Sets the current user.
File
- lib/
Drupal/ Core/ Logger/ LoggerChannelInterface.php, line 56 - Contains \Drupal\Core\Logger\LoggerChannelInterface.
Class
- LoggerChannelInterface
- Logger channel interface.
Namespace
Drupal\Core\LoggerCode
public function setCurrentUser(AccountInterface $current_user = NULL);