Automattic\WooCommerce\Admin\BlockTemplates

BlockTemplateInterface::generate_block_id()publicWC 1.0

Generate a block ID based on a base.

Method of the class: BlockTemplateInterface{}

No Hooks.

Return

String.

Usage

$BlockTemplateInterface = new BlockTemplateInterface();
$BlockTemplateInterface->generate_block_id( $id_base ): string;
$id_base(string) (required)
The base to use when generating an ID.

BlockTemplateInterface::generate_block_id() code WC 9.0.1

public function generate_block_id( string $id_base ): string;