WordPress at a glance
function is not described

WC_REST_Terms_Controller::get_taxonomy() protected WC 1.0

Get taxonomy.

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

No Hooks.

Return

Int|WP_Error.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_taxonomy( $request );
$request(WP_REST_Request) (required)
Full details about the request.

Code of WC_REST_Terms_Controller::get_taxonomy() WC 5.0.0

<?php
protected function get_taxonomy( $request ) {
	// Check if taxonomy is defined.
	// Prevents check for attribute taxonomy more than one time for each query.
	if ( '' !== $this->taxonomy ) {
		return $this->taxonomy;
	}

	if ( ! empty( $request['attribute_id'] ) ) {
		$taxonomy = wc_attribute_taxonomy_name_by_id( (int) $request['attribute_id'] );

		$this->taxonomy = $taxonomy;
	}

	return $this->taxonomy;
}