| @@ 294-305 (lines=12) @@ | ||
| 291 | return $attributes; |
|
| 292 | } |
|
| 293 | ||
| 294 | public function getSchemaDataDefaults() |
|
| 295 | { |
|
| 296 | $defaults = parent::getSchemaDataDefaults(); |
|
| 297 | return array_merge($defaults, [ |
|
| 298 | 'lang' => i18n::convert_rfc1766($this->getLocale()), |
|
| 299 | 'data' => array_merge($defaults['data'], [ |
|
| 300 | 'html5' => $this->getHTML5(), |
|
| 301 | 'min' => $this->getMinDate(), |
|
| 302 | 'max' => $this->getMaxDate() |
|
| 303 | ]) |
|
| 304 | ]); |
|
| 305 | } |
|
| 306 | ||
| 307 | public function Type() |
|
| 308 | { |
|
| @@ 108-119 (lines=12) @@ | ||
| 105 | /** |
|
| 106 | * @inheritDoc |
|
| 107 | */ |
|
| 108 | public function getSchemaDataDefaults() |
|
| 109 | { |
|
| 110 | $defaults = parent::getSchemaDataDefaults(); |
|
| 111 | return array_merge($defaults, [ |
|
| 112 | 'lang' => i18n::convert_rfc1766($this->getLocale()), |
|
| 113 | 'data' => array_merge($defaults['data'], [ |
|
| 114 | 'html5' => $this->getHTML5(), |
|
| 115 | 'min' => $this->internalToFrontend($this->getMinDatetime()), |
|
| 116 | 'max' => $this->internalToFrontend($this->getMaxDatetime()) |
|
| 117 | ]) |
|
| 118 | ]); |
|
| 119 | } |
|
| 120 | ||
| 121 | /** |
|
| 122 | * @inheritDoc |
|