Check if panel is loaded from a route?

I think @lukasbestle told me somewhere how to check if the panel is loaded inside a route but I can’t find it.

This did not work:

if( panel() ) {

I guess I need to create a new object and see if that exists?

if(function_exists('panel')) {
1 Like