You are here

public function Log::getUserId in Commerce Core 8.2

Gets the user ID.

Return value

int|null The user ID.

Overrides LogInterface::getUserId

File

modules/log/src/Entity/Log.php, line 42

Class

Log
Defines the log entity class.

Namespace

Drupal\commerce_log\Entity

Code

public function getUserId() {
  return $this
    ->get('uid')->target_id;
}