ListViewData.php Custom Folder

I have edited the ListViewData.php file that is located in include/ListView/

When I move it to custom/include/ListView/ the changes I made no longer work.

How do I direct SuiteCRM to look for ListViewData.php in the custom folder without modifying files outside of the custom folder?

Is there a way to extend the ListViewData.php file somehow?

I didn’t look into the specifics for that file, but normally you should be looking at overriding a method in the class, using the extension framework (instead of just replacing the file).

Look for examples online.