class ConfigOverrideMessageTestHooks
Hook implementations for config_override_message_test.
Hierarchy
- class \Drupal\config_override_message_test\Hook\ConfigOverrideMessageTestHooks
Expanded class hierarchy of ConfigOverrideMessageTestHooks
File
-
core/
modules/ config/ tests/ config_override_message_test/ src/ Hook/ ConfigOverrideMessageTestHooks.php, line 13
Namespace
Drupal\config_override_message_test\HookView source
class ConfigOverrideMessageTestHooks {
/**
* Implements hook_form_FORM_ID_alter().
*/
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.