public static function Workspace::getCurrentUserId in Multiversion 8
Default value callback for 'uid' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- src/
Entity/ Workspace.php, line 262
Class
- Workspace
- The workspace entity class.
Namespace
Drupal\multiversion\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}