You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding the MultiWidget to a page, the current record is not passed automatically to the widgets. We need to use the make() method to be able to pass $record to the widgets.
So we would need a function to set the $widget attribute as follows:
public function getWidgets()
{
return [
MySubmittedComments::make(["record" = $this->record]),
MySubmittedFeedback::make(["record" = $this->record],
MySubscriptions::make(["record" = $this->record]),
];
}
The text was updated successfully, but these errors were encountered:
When adding the MultiWidget to a page, the current record is not passed automatically to the widgets. We need to use the make() method to be able to pass $record to the widgets.
So we would need a function to set the $widget attribute as follows:
public function getWidgets()
{
return [
MySubmittedComments::make(["record" = $this->record]),
MySubmittedFeedback::make(["record" = $this->record],
MySubscriptions::make(["record" = $this->record]),
];
}
The text was updated successfully, but these errors were encountered: