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.

  Tab::make('Contacts')
                        ->schema([
                            ContactCard::make('contacts')->items(function (Model $record) {
//I could just get the data here, but it seems messy to me.
                                return $this->getOwners();
                            }),
                        ]),
Was this page helpful?