packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php


Lines:

1 to 35 of 35
<?php
namespace Automattic\WooCommerce\Blocks\BlockTypes;

use WP_Block;
use Automattic\WooCommerce\Blocks\Package;
use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry;
use Automattic\WooCommerce\Blocks\Assets\Api as AssetApi;
use Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry;
use Automattic\WooCommerce\Blocks\RestApi;

/* class AbstractBlock */
/* function AbstractBlock::__construct() – Constructor. */
/* function AbstractBlock::render_callback() – The default render_callback for all blocks. This will ensure assets are enqueued just in time, then render
the block (if applicable). */
/* function AbstractBlock::enqueue_editor_assets() – Enqueue assets used for rendering the block in editor context. */
/* function AbstractBlock::initialize() – Initialize this block type. */
/* function AbstractBlock::register_block_type_assets() – Register script and style assets for the block type before it is registered. */
/* function AbstractBlock::register_block_type() – Registers the block type with WordPress. */
/* function AbstractBlock::get_block_type() – Get the block type. */
/* function AbstractBlock::get_block_type_render_callback() – Get the render callback for this block type. */
/* function AbstractBlock::get_block_type_editor_script() – Get the editor script data for this block type. */
/* function AbstractBlock::get_block_type_editor_style() – Get the editor style handle for this block type. */
/* function AbstractBlock::get_block_type_script() – Get the frontend script handle for this block type. */
/* function AbstractBlock::get_block_type_style() – Get the frontend style handle for this block type. */
/* function AbstractBlock::get_block_type_supports() – Get the supports array for this block type. */
/* function AbstractBlock::get_block_type_attributes() – Get block attributes. */
/* function AbstractBlock::parse_render_callback_attributes() – Parses block attributes from the render_callback. */
/* function AbstractBlock::render() – Render the block. Extended by children. */
/* function AbstractBlock::enqueue_assets() – Enqueue frontend assets for this block, just in time for rendering. */
/* function AbstractBlock::inject_html_data_attributes() – Injects block attributes into the block. */
/* function AbstractBlock::get_html_data_attributes() – Converts block attributes to HTML data attributes. */
/* function AbstractBlock::enqueue_data() – Data passed through from server to client for block. */
/* function AbstractBlock::enqueue_scripts() – Register/enqueue scripts used for this block on the frontend, during render. */
/* function AbstractBlock::get_skeleton_inline_script() – Script to append the correct sizing class to a block skeleton. */
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,,