Automattic\WooCommerce\Internal\PushNotifications\Services

NotificationStepLogger::get_notification_source │ public static │ WC 11.3.0

Builds the log source for a notification type.

Method of the class: NotificationStepLogger{}

No Hooks.

Returns

string.

Usage

$result = NotificationStepLogger::get_notification_source( $notification ): string;
$notification(Notification) (required)
The notification.

Changelog

Since 11.3.0 Introduced.

NotificationStepLogger::get_notification_source() code WC 11.3.0

public static function get_notification_source( Notification $notification ): string {
	return self::get_notification_source_for_type( $notification->get_type() );
}