function ConfigTranslationTestHooks::configTranslationInfoAlter

Implements hook_config_translation_info_alter().

File

core/modules/config_translation/tests/modules/config_translation_test/src/Hook/ConfigTranslationTestHooks.php, line 40

Class

ConfigTranslationTestHooks
Hook implementations for config_translation_test.

Namespace

Drupal\config_translation_test\Hook

Code

public function configTranslationInfoAlter(&$info) : void {
    if (\Drupal::state()->get('config_translation_test_config_translation_info_alter')) {
        // Limit account settings config files to only one of them.
        $info['entity.user.admin_form']['names'] = [
            'user.settings',
        ];
        // Add one more config file to the site information page.
        $info['system.site_information_settings']['names'][] = 'system.rss';
    }
}

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