system.extendConfigFile

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; } });

Usage

Globally

use Event;

Event::listen('system.extendConfigFile', function () {
    // Your event listener code goes here...
});

Triggers

Class or file Line
System\Traits\ConfigMaker 83
Copyright © 2024 Winter CMS