public static function EmailConfirmation::getCurrentUserId in Email confirmer 8
Default value callback for 'uid' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- src/
Entity/ EmailConfirmation.php, line 442
Class
- EmailConfirmation
- Defines the email confirmation entity class.
Namespace
Drupal\email_confirmer\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}