WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

NavigationFavorites::get_items() public WC 1.0

Get all favorites.

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

No Hooks.

Return

WP_REST_Response. Nothing.

Usage

$NavigationFavorites = new NavigationFavorites();
$NavigationFavorites->get_items( $request );
$request(WP_REST_Request) (required)
Request data.

Code of NavigationFavorites::get_items() WC 5.3.0

<?php
public function get_items( $request ) {
	$user_id = $request->get_param( 'user_id' );

	$response = Favorites::get_all( $user_id );

	if ( is_wp_error( $response ) || ! $response ) {
		return rest_ensure_response( $this->prepare_error( $response ) );
	}

	return rest_ensure_response(
		array_map( 'stripslashes', $response )
	);
}