Automattic\WooCommerce\Internal\PushNotifications\Services

StepLogQuery::get_failure_key │ private static │ WC 1.0

Names the notification, step and outcome a row records.

Method of the class: StepLogQuery{}

No Hooks.

Returns

string|null. Null for a row that names no notification, such as a batch line.

Usage

$result = StepLogQuery::get_failure_key( $row ): ?string;
$row(array) (required)
The row.

StepLogQuery::get_failure_key() code WC 11.3.0

private static function get_failure_key( array $row ): ?string {
	$context = $row['context'] ?? array();

	return isset( $context['identifier'], $context['step'], $context['outcome'] )
		? $context['identifier'] . '|' . $context['step'] . '|' . $context['outcome']
		: null;
}