system.extendConfigFile

Triggered in System\Traits\ConfigMaker.

Provides an opportunity to modify config files

Example usage:

Event::listen('system.extendConfigFile', function ((string) $path, (array) $config) {
    if ($path === '/plugins/author/plugin-name/controllers/mycontroller/config_relation.yaml') {
        unset($config['property_value']['view']['recordUrl']);
        return $config;
    }
});