class ConfigOverrideMessageTestHooks

Hook implementations for config_override_message_test.

Hierarchy

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\Hook
View 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;
    }

}

Members

Title Sort descending Modifiers Object type Summary
ConfigOverrideMessageTestHooks::formSystemSiteInformationSettingsAlter public function Implements hook_form_FORM_ID_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.