Commit f3baea11 authored by alexpott's avatar alexpott

Issue #2796145 by mpdonadio, kunal.kursija, Gábor Hojtsy, jhedstrom, hass:...

Issue #2796145 by mpdonadio, kunal.kursija, Gábor Hojtsy, jhedstrom, hass: Daterange field labels not specific enough
parent 16ddd387
......@@ -20,10 +20,10 @@ class DateRangeWidgetBase extends DateTimeWidgetBase {
public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state) {
$element = parent::formElement($items, $delta, $element, $form, $form_state);
$element['#element_validate'][] = [$this, 'validateStartEnd'];
$element['value']['#title'] = $this->t('Start');
$element['value']['#title'] = $this->t('Start date');
$element['end_value'] = [
'#title' => $this->t('End'),
'#title' => $this->t('End date'),
] + $element['value'];
if ($items[$delta]->start_date) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment