mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Consistent schema keys
This commit is contained in:
parent
14b3468eee
commit
b852a76334
@ -295,7 +295,11 @@ class DateField extends TextField
|
|||||||
$defaults = parent::getSchemaDataDefaults();
|
$defaults = parent::getSchemaDataDefaults();
|
||||||
return array_merge($defaults, [
|
return array_merge($defaults, [
|
||||||
'lang' => i18n::convert_rfc1766($this->getLocale()),
|
'lang' => i18n::convert_rfc1766($this->getLocale()),
|
||||||
'html5' => $this->getHTML5()
|
'data' => array_merge($defaults['data'], [
|
||||||
|
'html5' => $this->getHTML5(),
|
||||||
|
'min' => $this->getMinDate(),
|
||||||
|
'max' => $this->getMaxDate()
|
||||||
|
])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +111,12 @@ class DatetimeField extends TextField
|
|||||||
{
|
{
|
||||||
$defaults = parent::getSchemaDataDefaults();
|
$defaults = parent::getSchemaDataDefaults();
|
||||||
return array_merge($defaults, [
|
return array_merge($defaults, [
|
||||||
'html5' => $this->getHTML5()
|
'lang' => i18n::convert_rfc1766($this->getLocale()),
|
||||||
|
'data' => array_merge($defaults['data'], [
|
||||||
|
'html5' => $this->getHTML5(),
|
||||||
|
'min' => $this->getMinDate(),
|
||||||
|
'max' => $this->getMaxDate()
|
||||||
|
])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,7 +235,10 @@ class TimeField extends TextField
|
|||||||
{
|
{
|
||||||
$defaults = parent::getSchemaDataDefaults();
|
$defaults = parent::getSchemaDataDefaults();
|
||||||
return array_merge($defaults, [
|
return array_merge($defaults, [
|
||||||
'html5' => $this->getHTML5()
|
'lang' => i18n::convert_rfc1766($this->getLocale()),
|
||||||
|
'data' => array_merge($defaults['data'], [
|
||||||
|
'html5' => $this->getHTML5(),
|
||||||
|
])
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user