Method | Description | |
---|---|---|
export ( array $data = [] ) : array | ||
import ( array $pluginDefinitions, boolean $force = false ) : Result |
Method | Description | |
---|---|---|
getPlugin ( string $handle ) : Craft\BasePlugin | null | Returns plugin by handle. | |
getPluginService ( ) : PluginsService | ||
getUpdatesService ( ) : UpdatesService | ||
installPluginByHandle ( string $handle ) | Installs plugin by handle. | |
runMigrations ( string $handle ) | Run plugin migrations automatically. | |
togglePluginByHandle ( string $handle, boolean $isEnabled ) | Toggles plugin based on enabled flag. | |
uninstallPluginByHandle ( $handle ) | Uninstalls plugin by handle. |
Method | Description | |
---|---|---|
getPluginDefinition ( Craft\BasePlugin $plugin ) : array |
protected getPluginService ( ) : PluginsService | ||
return | PluginsService |
protected getUpdatesService ( ) : UpdatesService | ||
return | UpdatesService |
protected installPluginByHandle ( string $handle ) | ||
$handle | string |
protected runMigrations ( string $handle ) | ||
$handle | string |
protected togglePluginByHandle ( string $handle, boolean $isEnabled ) | ||
$handle | string | |
$isEnabled | boolean |
protected uninstallPluginByHandle ( $handle ) | ||
$handle |