public static function SiteSettingEntity::getDefaultUserId in Site Settings and Labels 8
Default value callback for 'user_id' base field definition.
Return value
array An array of default values.
File
- src/
Entity/ SiteSettingEntity.php, line 296
Class
- SiteSettingEntity
- Defines the Site Setting entity.
Namespace
Drupal\site_settings\EntityCode
public static function getDefaultUserId() {
return [
\Drupal::currentUser()
->id(),
];
}