You are here

public static function Replication::getCurrentUserId in Workspace 8

Default value callback for 'uid' base field definition.

Return value

array An array of default values.

See also

::baseFieldDefinitions()

File

src/Entity/Replication.php, line 321

Class

Replication
Defines the Replication entity.

Namespace

Drupal\workspace\Entity

Code

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