Automattic\WooCommerce\Internal\PushNotifications\Services

StepLogQuery::get_token_sources │ private static │ WC 1.0

The sources that can name a token: every notification type's own source and the store-wide suppressed source.

Method of the class: StepLogQuery{}

No Hooks.

Returns

string[].

Usage

$result = StepLogQuery::get_token_sources(): array;

StepLogQuery::get_token_sources() code WC 11.3.0

private static function get_token_sources(): array {
	$sources = array_map(
		array( NotificationStepLogger::class, 'get_notification_source_for_type' ),
		array_keys( Notification::NOTIFICATION_CLASSES )
	);

	$sources[] = NotificationStepLogger::SUPPRESSED_SOURCE;

	return $sources;
}