Searchable Fields Error

In SS 4.3 I can’t pass a function to $searchable_fields… If I do I get “[Emergency] Uncaught Error: Call to a member function scaffoldSearchField() on string”. Is there a way I can pass a simple function there (that’ll return a string)?

There’s a bit of discussion about it here: BadMethodCallException when scafolding search · Issue #8792 · silverstripe/silverstripe-framework · GitHub