function DemoUmamiHooks::formInstallConfigureFormAlter

Same name and namespace in other branches
  1. 11.x core/profiles/demo_umami/src/Hook/DemoUmamiHooks.php \Drupal\demo_umami\Hook\DemoUmamiHooks::formInstallConfigureFormAlter()

Implements hook_form_FORM_ID_alter() for install_configure_form().

Allows the profile to alter the site configuration form.

Attributes

#[Hook('form_install_configure_form_alter')]

File

core/profiles/demo_umami/src/Hook/DemoUmamiHooks.php, line 69

Class

DemoUmamiHooks
Hook implementations for demo_umami.

Namespace

Drupal\demo_umami\Hook

Code

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.