'#value'=>$this->t('A security update is available for your version of Drupal.'),
];
}
$update_text=$this->t('Even with all that caution, if you want to try it out... <i>no update is available at this time. Check back later once a newer release is provided for a link to update your site.</i>');
if($not_recommended&&$no_dev_core){
$update_text=$this->t('Even with all that caution, if you want to try it out, <a href="@link">update now</a>.',[
'#prefix'=>'Database updates are not run after an update. This module does not have a stable release and it is recommended to not use these features on a live website. Use at your own risk.',
'#type'=>'html_tag',
'#tag'=>'p',
'#value'=>$this->t('No update for Drupal is available for version %version.',['%version'=>\Drupal::VERSION]),
'#value'=>$update_text,
];
$form['experimental']['enable_cron_updates']=[
'#type'=>'checkbox',
'#title'=>$this->t('Enable automatic updates of Drupal core via cron.'),
'#prefix'=>'Note: Might break the site. No readiness checks or anything in place. Just update the files of Drupal core. Database updates are not run.',
];
}
}
returnparent::buildForm($form,$form_state);
}
...
...
@@ -154,6 +182,10 @@ class SettingsForm extends ConfigFormBase {