public static function ScheduledUpdate::getCurrentUserId in Scheduled Updates 8
Default value callback for 'uid' base field definition.
Return value
array An array of default values.
See also
::baseFieldDefinitions()
File
- src/
Entity/ ScheduledUpdate.php, line 281 - Contains \Drupal\scheduled_updates\Entity\ScheduledUpdate.
Class
- ScheduledUpdate
- Defines the Scheduled update entity.
Namespace
Drupal\scheduled_updates\EntityCode
public static function getCurrentUserId() {
return [
\Drupal::currentUser()
->id(),
];
}