function DemoUmamiHooks::formInstallConfigureFormAlter
Implements hook_form_FORM_ID_alter() for install_configure_form().
Allows the profile to alter the site configuration form.
File
-
core/
profiles/ demo_umami/ src/ Hook/ DemoUmamiHooks.php, line 70
Class
- DemoUmamiHooks
- Hook implementations for demo_umami.
Namespace
Drupal\demo_umami\HookCode
public function formInstallConfigureFormAlter(&$form, FormStateInterface $form_state) : void {
$form['site_information']['site_name']['#default_value'] = 'Umami Food Magazine';
$form['#submit'][] = [
$this,
'installConfigureSubmit',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.