-
Notifications
You must be signed in to change notification settings - Fork 2
Module
Viames Marino edited this page Feb 23, 2026
·
1 revision
Pair\Models\Module represents an installable module plugin.
getBaseFolder(): stringgetPlugin(): PluginstoreByPlugin(SimpleXMLElement $options): bool
Lifecycle hooks:
-
_init()defines schema and validation -
beforeDelete()performs module cleanup
$module = \Pair\Models\Module::findById($id);
if ($module && $module->isCompatibleWithApp()) {
$plugin = $module->getPlugin();
// use plugin metadata or install/update helpers
}- Extends
PluginBase, so it inherits compatibility checks. - Integrates with plugin manifest options when storing.
See also: Plugin, PluginBase, Template.