I’m trying to create a unified license dialog for multiple plugins in the panel and I’m looking for ways to pass information to said dialog.
Referencing the dialog via the LicenseStatus class is easy;
new LicenseStatus(
value: 'missing',
theme: 'negative',
label: t('hananils.license.test'),
icon: 'alert',
dialog: 'hananils/activate'
);
My question is: How do I pass data to the dialog’s load function? Or – if that’s not possible – how do I access content information from within the load function?
As an example: The most basic information I’m looking for is the name of the plugin the license dialog was called for. Does Kirby pass a $plugin object to the dialogs?