Api::get_dependencies( string $asset_relative_path, array $extra_dependencies = array() )

Returns the dependency array for the given asset relative path.


Description Description


Parameters Parameters

$asset_relative_path

(Required) Something like 'build/constants.js' considered to be relative to the main asset path.

$extra_dependencies

(Optional) Extra dependencies to be explicitly added to the generated array.

Default value: array()


Top ↑

Return Return

(array) An array of dependencies


Top ↑

Source Source

File: woocommerce/packages/woocommerce-blocks/src/Assets/Api.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.