calling method to get data
within the context of a form, what's the right way to get the data for this component? I get
Using $this when not in object context
when I try to call the getOwners()
method I created.
3 Replies
I got it working doing this:
This is only my proof of concept, and I think what I actually need to get in terms of data is going to be more complicated. I still don't know if it all needs to live in this closure, or if I should have a separate class somewhere? Would love anyones take on best practices.
you can make a static method?
static::getOwners($record)
that worked, thx!