Automattic\WooCommerce\Blocks\Integrations

IntegrationInterface{} │ interface │ WC 1.0

Integration.Interface

Integrations must use this interface when registering themselves with blocks,

No Hooks.

Usage

$IntegrationInterface = new IntegrationInterface();
// use class methods

Methods

  1. public get_editor_script_handles()
  2. public get_name()
  3. public get_script_data()
  4. public get_script_handles()
  5. public initialize()
  6. ERROR: no method name found on line ``
  7. ERROR: no method name found on line ``
  8. ERROR: no method name found on line ``
  9. ERROR: no method name found on line ``
  10. ERROR: no method name found on line `*`
  11. ERROR: no method name found on line ``
  12. ERROR: no method name found on line ``
  13. ERROR: no method name found on line `*`

IntegrationInterface{} code WC 11.2.2

interface IntegrationInterface {
	/**
	 * The name of the integration.
	 *
	 * @return string
	 */
	public function get_name();

	/**
	 * When called invokes any initialization/setup for the integration.
	 */
	public function initialize();

	/**
	 * Returns an array of script handles to enqueue in the frontend context.
	 *
	 * @return string[]
	 */
	public function get_script_handles();

	/**
	 * Returns an array of script handles to enqueue in the editor context.
	 *
	 * @return string[]
	 */
	public function get_editor_script_handles();

	/**
	 * An array of key, value pairs of data made available to the block on the client side.
	 *
	 * @return array
	 */
	public function get_script_data();
}