access current record from custom view

I have created a custom view for record view page. I want to access current record from that view. How can I do that? Thanks
4 Replies
Dan Harrin
Dan Harrin2y ago
$record ?
.fayax
.fayaxOP2y ago
That works. Thanks. What if I want to change page title of view page from current record? protected static ?string $title = $record->name Cannot use $record here
Dan Harrin
Dan Harrin2y ago
override getTitle() instead you can access $this->record
.fayax
.fayaxOP2y ago
That works perfect! Thank you
Want results from more Discord servers?
Add your server