WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\PluginsProvider

PluginsProvider::set_deactivated_plugin() public WC 1.0

Set the deactivated plugin. This is needed because the deactivated_plugin hook happens before the option is updated which means that getting the active plugins includes the deactivated plugin.

{} It's a method of the class: PluginsProvider{}

No Hooks.

Return

null. Nothing.

Usage

$result = PluginsProvider::set_deactivated_plugin( $plugin_path );
$plugin_path(string) (required)
The path to the plugin being deactivated.

Code of PluginsProvider::set_deactivated_plugin() WC 5.3.0

<?php
public static function set_deactivated_plugin( $plugin_path ) {
	self::$deactivated_plugin_slug = explode( '/', $plugin_path )[0];
}