Commit realizado el 12:13:52 08-04-2024
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* Interface PluginActivationAware.
|
||||
*
|
||||
* @link https://www.mwpd.io/
|
||||
*
|
||||
* @copyright 2019 Alain Schlesser
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/**
|
||||
* Original code modified for this project.
|
||||
*
|
||||
* @copyright 2021 Google LLC
|
||||
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
|
||||
*/
|
||||
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace Google\Web_Stories\Infrastructure;
|
||||
|
||||
/**
|
||||
* Something that can be activated.
|
||||
*
|
||||
* By tagging a service with this interface, the system will automatically hook
|
||||
* it up to the WordPress activation hook.
|
||||
*
|
||||
* This way, we can just add the simple interface marker and not worry about how
|
||||
* to wire up the code to reach that part during the static activation hook.
|
||||
*
|
||||
* @internal
|
||||
*
|
||||
* @since 1.6.0
|
||||
*/
|
||||
interface PluginActivationAware {
|
||||
|
||||
/**
|
||||
* Act on plugin activation.
|
||||
*
|
||||
* @since 1.6.0
|
||||
*
|
||||
* @param bool $network_wide Whether the activation was done network-wide.
|
||||
*/
|
||||
public function on_plugin_activation( bool $network_wide ): void;
|
||||
}
|
Reference in New Issue
Block a user