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

Breadcrumb

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

function LoggerChannel::setCurrentUser

Overrides LoggerChannelInterface::setCurrentUser

File

core/lib/Drupal/Core/Logger/LoggerChannel.php, line 143

Class

LoggerChannel
Defines a logger channel that most implementations will use.

Namespace

Drupal\Core\Logger

Code

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

API Navigation

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