allow to configure default values for users (#919)
This commit is contained in:
@@ -18,7 +18,7 @@ class FormConfiguration implements SystemBundleConfiguration
|
||||
return 'defaults';
|
||||
}
|
||||
|
||||
public function getCustomerDefaultTimezone(): string
|
||||
public function getCustomerDefaultTimezone(): ?string
|
||||
{
|
||||
return $this->find('customer.timezone');
|
||||
}
|
||||
@@ -32,4 +32,19 @@ class FormConfiguration implements SystemBundleConfiguration
|
||||
{
|
||||
return $this->find('customer.country');
|
||||
}
|
||||
|
||||
public function getUserDefaultTimezone(): ?string
|
||||
{
|
||||
return $this->find('user.timezone');
|
||||
}
|
||||
|
||||
public function getUserDefaultTheme(): ?string
|
||||
{
|
||||
return $this->find('user.theme');
|
||||
}
|
||||
|
||||
public function getUserDefaultLanguage(): string
|
||||
{
|
||||
return $this->find('user.language');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user