public static function Invoice::getCurrentUserId in Commerce Invoice 8.2
Default value callback for 'uid' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- src/
Entity/ Invoice.php, line 864
Class
- Invoice
- Defines the invoice entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}