backend.site.getEditSite

Triggered in Backend\Widgets\SiteSwitcher.

Overrides the edit site object.

If a value is returned from this halting event, it will be used as the edit site object. Example usage:

Event::listen('backend.site.getEditSite', function() {
    return SiteDefinition::find(1);
});