function TestInstallerThemeHooks::formInstallConfigureFormAlter
Same name and namespace in other branches
- main core/modules/system/tests/themes/test_installer_theme/src/Hook/TestInstallerThemeHooks.php \Drupal\test_installer_theme\Hook\TestInstallerThemeHooks::formInstallConfigureFormAlter()
Implements hook_form_FORM_ID_alter().
The site configuration form is the last installer step. The profile has installed its own themes by then, so this marker shows that the install theme still has its hook implementations registered.
Attributes
#[Hook('form_install_configure_form_alter')]
File
-
core/
modules/ system/ tests/ themes/ test_installer_theme/ src/ Hook/ TestInstallerThemeHooks.php, line 29
Class
- TestInstallerThemeHooks
- Form alter hooks for installer tests.
Namespace
Drupal\test_installer_theme\HookCode
public function formInstallConfigureFormAlter(array &$form) : void {
$form['installer_theme_marker'] = [
'#markup' => 'Added by custom installer theme on the last step.',
'#weight' => -100,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.