public static function MassContactMessage::getCurrentUserId in Mass Contact 8
Default value callback for 'uid' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- src/
Entity/ MassContactMessage.php, line 190
Class
- MassContactMessage
- The mass contact message entity for archiving messages.
Namespace
Drupal\mass_contact\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}