Automattic\WooCommerce\Internal\Admin\BlockTemplates
BlockTemplateLogger::format_template()
Format a block template for logging.
Метод класса: BlockTemplateLogger{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->format_template( $template ): string;
- $template(BlockTemplateInterface) (обязательный)
- Template to format.
Код BlockTemplateLogger::format_template() BlockTemplateLogger::format template WC 9.7.1
private function format_template( BlockTemplateInterface $template ): string { return "{$template->get_id()} (area: {$template->get_area()})"; }