'#markup'=>$this->t('Recurrence configuration has been changed, as a result all instances will be removed and recreated. This action cannot be undone.'),
'#suffix'=>'</p>',
];
$form['diff']['table']=[
'#type'=>'table',
'#header'=>[
$this->t('Data'),
$this->t('Stored'),
$this->t('Overridden'),
],
'#rows'=>$diff_array,
];
$form['diff']['confirm']=[
'#type'=>'submit',
'#value'=>$this->t('Confirm Date Changes'),
'#submit'=>[
'::submitForm',
'::save',
],
];
}
}
}
}
return$form;
return$form;
...
@@ -127,56 +168,21 @@ class EventSeriesForm extends ContentEntityForm {
...
@@ -127,56 +168,21 @@ class EventSeriesForm extends ContentEntityForm {
'#markup'=>$this->t('Recurrence configuration has been changed, as a result all instances will be removed and recreated. This action cannot be undone.'),
'#suffix'=>'</p>',
'#weight'=>-9,
];
$build['diff']=[
'#type'=>'table',
'#header'=>[
$this->t('Data'),
$this->t('Stored'),
$this->t('Overridden'),
],
'#rows'=>$diff_array,
'#weight'=>-8,
];
}
else{
$build=[];
$build['message']=[
'#type'=>'#markup',
'#prefix'=>'<p>',
'#markup'=>$this->t('No recurrence configuration has changed. No existing instances will be affected by this update.'),