config_override_message_test.module
File
-
core/
modules/ config/ tests/ config_override_message_test/ config_override_message_test.module
View source
<?php
/**
* @file
* Tests configuration override message functionality.
*/
declare (strict_types=1);
use Drupal\Core\Form\FormStateInterface;
/**
* Implements hook_form_FORM_ID_alter().
*/
function config_override_message_test_form_system_site_information_settings_alter(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;
}
Functions
Title | Deprecated | Summary |
---|---|---|
config_override_message_test_form_system_site_information_settings_alter | Implements hook_form_FORM_ID_alter(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.