Automattic\WooCommerce\Admin\Features\ProductBlockEditor

BlockRegistry::get_file_path()privateWC 1.0

Get a file path for a given block file.

Method of the class: BlockRegistry{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->get_file_path( $path, $dir );
$path(string) (required)
File path.
$dir(string) (required)
File directory.

BlockRegistry::get_file_path() code WC 9.2.3

private function get_file_path( $path, $dir ) {
	return WC_ABSPATH . WCAdminAssets::get_path( 'js' ) . trailingslashit( $dir ) . $path;
}