public static function State::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_event/ src/ Entity/ State.php, line 299 - Contains \Drupal\bat_event\Entity\State.
Class
- State
- Defines the State entity.
Namespace
Drupal\bat_event\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}