function demo_umami_form_install_configure_form_alter

Same name in other branches
  1. 9 core/profiles/demo_umami/demo_umami.profile \demo_umami_form_install_configure_form_alter()
  2. 8.9.x core/profiles/demo_umami/demo_umami.profile \demo_umami_form_install_configure_form_alter()
  3. 10 core/profiles/demo_umami/demo_umami.profile \demo_umami_form_install_configure_form_alter()

Implements hook_form_FORM_ID_alter() for install_configure_form().

Allows the profile to alter the site configuration form.

File

core/profiles/demo_umami/demo_umami.profile, line 38

Code

function demo_umami_form_install_configure_form_alter(&$form, FormStateInterface $form_state) {
    $form['site_information']['site_name']['#default_value'] = 'Umami Food Magazine';
    $form['#submit'][] = 'demo_umami_form_install_configure_submit';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.