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
$record ?
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
override getTitle() instead
you can access
$this->record
That works perfect! Thank you