Craft Themes (3.x)

PluginsHelper
in package

Helper for operations related to plugins

Tags
since
3.1.0

Table of Contents

$reinstallQueued  : mixed
afterDisable()  : mixed
After a plugin is disabled
afterEnable()  : mixed
After a plugin is enabled
afterInstall()  : mixed
After a plugin is installed
beforeDisable()  : mixed
Before a plugin is disabled
beforeEnable()  : mixed
Before a plugin is enabled
beforeInstall()  : mixed
Before a plugin is installed
beforeUninstall()  : mixed
Before a plugin is uninstalled
onThemesEditionChanged()  : mixed
When themes edition is changed
installTheme()  : mixed
reinstallLayouts()  : mixed
Reinstall all layouts through a job
uninstallTheme()  : mixed

Properties

$reinstallQueued

private static mixed $reinstallQueued = false

Methods

afterDisable()

After a plugin is disabled

public static afterDisable(PluginInterface $plugin) : mixed
Parameters
$plugin : PluginInterface
Return values
mixed

afterEnable()

After a plugin is enabled

public static afterEnable(PluginInterface $plugin) : mixed
Parameters
$plugin : PluginInterface
Return values
mixed

afterInstall()

After a plugin is installed

public static afterInstall(PluginInterface $plugin) : mixed
Parameters
$plugin : PluginInterface
Return values
mixed

beforeDisable()

Before a plugin is disabled

public static beforeDisable(PluginInterface $plugin) : mixed
Parameters
$plugin : PluginInterface
Return values
mixed

beforeEnable()

Before a plugin is enabled

public static beforeEnable(PluginInterface $plugin) : mixed
Parameters
$plugin : PluginInterface
Return values
mixed

beforeInstall()

Before a plugin is installed

public static beforeInstall(PluginInterface $plugin) : mixed
Parameters
$plugin : PluginInterface
Return values
mixed

beforeUninstall()

Before a plugin is uninstalled

public static beforeUninstall(PluginInterface $plugin) : mixed
Parameters
$plugin : PluginInterface
Return values
mixed

onThemesEditionChanged()

When themes edition is changed

public static onThemesEditionChanged(array<string|int, mixed> $oldEdition, string $newEdition) : mixed
Parameters
$oldEdition : array<string|int, mixed>
$newEdition : string
Return values
mixed

reinstallLayouts()

Reinstall all layouts through a job

private static reinstallLayouts() : mixed
Return values
mixed

Search results