src/ORM/Hierarchy/Hierarchy.php
public function showingCMSTree()
    {
        if (!Controller::has_curr() || !class_exists(LeftAndMain::class)) {
            return false;
        }
        $controller = Controller::curr();
        return $controller instanceof LeftAndMain
            && in_array($controller->getAction(), array("treeview", "listview", "getsubtree"));
    }
public function showingCMSTree()
    {
        if (!Controller::has_curr() || !class_exists(LeftAndMain::class)) {
            return false;
        }
        $controller = Controller::curr();
        return $controller instanceof LeftAndMain
            && in_array($controller->getAction(), array("treeview", "listview", "getsubtree"));
    }
public function showingCMSTree ( ) { if ( ! Controller :: has_curr ( ) || ! class_exists ( LeftAndMain :: class ) ) { return false ; } $ controller = Controller :: curr ( ) ; return $ controller instanceof LeftAndMain && in_array ( $ controller -> getAction ( ) , array ( "treeview" , "listview" , "getsubtree" ) ) ; }
Checks if we're on a controller where we should filter. ie. Are we loading the SiteTree?

@return bool
Checks if we re on a controller where we should filter . ie . Are we loading the SiteTree?