Automattic\WooCommerce\Blocks\BlockTypes

PaymentMethodIcons::enqueue_dataprotectedWC 1.0

Extra data passed through from server to client for block.

Method of the class: PaymentMethodIcons{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->enqueue_data( $attributes );
$attributes(array)
Any attributes that currently are available from the block.
Default: []

PaymentMethodIcons::enqueue_data() code WC 10.3.6

protected function enqueue_data( array $attributes = [] ) {
	parent::enqueue_data( $attributes );
	$this->asset_data_registry->add( 'availablePaymentMethods', $this->get_available_payment_methods() );
}