You are here

public static function Log::getCurrentUserId in Log entity 8

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

Return value

array

File

src/Entity/Log.php, line 223
Contains \Drupal\log\Entity\Log.

Class

Log
Defines the Log entity.

Namespace

Drupal\log\Entity

Code

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