WordPress at a glance
function is not described

Automattic\WooCommerce\Blocks

Assets::get_file_version() protected WC 1.0

Get the file modified time as a cache buster if we're in dev mode.

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

No Hooks.

Return

String. The cache buster value to use for the given file.

Usage

$result = Assets::get_file_version( $file );
$file(string) (required)
Local path to the file.

Code of Assets::get_file_version() WC 5.0.0

<?php
protected static function get_file_version( $file ) {
	if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG && file_exists( \Automattic\WooCommerce\Blocks\Package::get_path() . $file ) ) {
		return filemtime( \Automattic\WooCommerce\Blocks\Package::get_path() . $file );
	}
	return \Automattic\WooCommerce\Blocks\Package::get_version();
}