WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi

RoutesController::get() public WC 1.0

Get a route class instance.

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

No Hooks.

Return

AbstractRoute.

Usage

$RoutesController = new RoutesController();
$RoutesController->get( $name );
$name(string) (required)
Name of schema.

Code of RoutesController::get() WC 5.8.0

public function get( $name ) {
	if ( ! isset( $this->routes[ $name ] ) ) {
		throw new Exception( $name . ' route does not exist' );
	}
	return $this->routes[ $name ];
}