Automattic\WooCommerce\Internal\Admin\BlockTemplates

BlockTemplateLogger::format_templateprivateWC 1.0

Format a block template 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_template( $template ): string;
$template(BlockTemplateInterface) (required)
Template to format.

BlockTemplateLogger::format_template() code WC 10.7.0

private function format_template( BlockTemplateInterface $template ): string {
	return "{$template->get_id()} (area: {$template->get_area()})";
}