WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

AbstractBlock::__construct() public WC 1.0

Constructor.

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

No Hooks.

Return

null. Nothing.

Usage

$AbstractBlock = new AbstractBlock();
$AbstractBlock->__construct( $asset_api, $asset_data_registry, $integration_registry, $block_name );
$asset_api(AssetApi) (required)
Instance of the asset API.
$asset_data_registry(AssetDataRegistry) (required)
Instance of the asset data registry.
$integration_registry(IntegrationRegistry) (required)
Instance of the integration registry.
$block_name(string)
Optionally set block name during construct.
Default: ''

Code of AbstractBlock::__construct() WC 5.6.0

public function __construct( AssetApi $asset_api, AssetDataRegistry $asset_data_registry, IntegrationRegistry $integration_registry, $block_name = '' ) {
	$this->asset_api            = $asset_api;
	$this->asset_data_registry  = $asset_data_registry;
	$this->integration_registry = $integration_registry;
	$this->block_name           = $block_name ? $block_name : $this->block_name;
	$this->initialize();
}