You are here

public static function Log::getCurrentUserId in Log entity 2.x

Same name and namespace in other branches
  1. 8 src/Entity/Log.php \Drupal\log\Entity\Log::getCurrentUserId()

File

src/Entity/Log.php, line 157

Class

Log
Defines the Log entity.

Namespace

Drupal\log\Entity

Code

public static function getCurrentUserId() {
  return [
    \Drupal::currentUser()
      ->id(),
  ];
}