You are here

function standard_form_install_configure_form_alter in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/profiles/standard/standard.profile \standard_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/standard/standard.profile, line 15
Enables modules and site configuration for a standard site installation.

Code

function standard_form_install_configure_form_alter(&$form, FormStateInterface $form_state) {

  // Add a placeholder as example that one can choose an arbitrary site name.
  $form['site_information']['site_name']['#attributes']['placeholder'] = t('My site');
  $form['#submit'][] = 'standard_form_install_configure_submit';
}