WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports\Categories

Controller::prepare_links() protected WC 1.0

Prepare links for the request.

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

No Hooks.

Return

Array. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->prepare_links( $object );
$object(\Automattic\WooCommerce\Admin\API\Reports\Query) (required)
Object data.

Code of Controller::prepare_links() WC 5.3.0

<?php
protected function prepare_links( $object ) {
	$links = array(
		'category' => array(
			'href' => rest_url( sprintf( '/%s/products/categories/%d', $this->namespace, $object['category_id'] ) ),
		),
	);

	return $links;
}