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