function ConfigOverrideMessageTestHooks::formSystemSiteInformationSettingsAlter
Implements hook_form_FORM_ID_alter().
File
-
core/
modules/ config/ tests/ config_override_message_test/ src/ Hook/ ConfigOverrideMessageTestHooks.php, line 18
Class
- ConfigOverrideMessageTestHooks
- Hook implementations for config_override_message_test.
Namespace
Drupal\config_override_message_test\HookCode
public function formSystemSiteInformationSettingsAlter(array &$form, FormStateInterface $form_state, string $form_id) : void {
// Set a weight to a negative amount to ensure the config overrides message
// is above it.
$form['site_information']['#weight'] = -5;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.