WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\RemoteInboxNotifications

PluginsActivatedRuleProcessor::process() public WC 1.0

Process the rule.

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

No Hooks.

Return

true|false. Whether the rule passes or not.

Usage

$PluginsActivatedRuleProcessor = new PluginsActivatedRuleProcessor();
$PluginsActivatedRuleProcessor->process( $rule, $stored_state );
$rule(object) (required)
The specific rule being processed by this rule processor.
$stored_state(object) (required)
Stored state.

Code of PluginsActivatedRuleProcessor::process() WC 5.3.0

<?php
public function process( $rule, $stored_state ) {
	if ( 0 === count( $rule->plugins ) ) {
		return false;
	}

	$active_plugin_slugs = $this->plugins_provider->get_active_plugin_slugs();

	foreach ( $rule->plugins as $plugin_slug ) {
		if ( ! in_array( $plugin_slug, $active_plugin_slugs, true ) ) {
			return false;
		}
	}

	return true;
}