Automattic\WooCommerce\Internal\Admin\BlockTemplates
BlockTemplateLogger::format_block
Format a block for logging.
Method of the class: BlockTemplateLogger{}
No Hooks.
Returns
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->format_block( $block ): string;
- $block(BlockInterface) (required)
- Block to format.
BlockTemplateLogger::format_block() BlockTemplateLogger::format block code WC 9.8.5
private function format_block( BlockInterface $block ): string { return "{$block->get_id()} (name: {$block->get_name()})"; }