Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LoggerChannelInterface.php

function 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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal