public static function Booking::getCurrentUserId in Booking and Availability Management Tools for Drupal 8
Default value callback for 'uid' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- modules/
bat_booking/ src/ Entity/ Booking.php, line 206 - Contains \Drupal\bat_booking\Entity\Booking.
Class
- Booking
- Defines the Booking entity.
Namespace
Drupal\bat_booking\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}