Automattic\WooCommerce\Internal\Admin\BlockTemplates
AbstractBlockTemplate::to_json
Get the template as JSON like array.
Method of the class: AbstractBlockTemplate{}
No Hooks.
Returns
Array. The JSON.
Usage
$AbstractBlockTemplate = new AbstractBlockTemplate(); $AbstractBlockTemplate->to_json(): array;
AbstractBlockTemplate::to_json() AbstractBlockTemplate::to json code WC 10.3.6
public function to_json(): array {
return array(
'id' => $this->get_id(),
'title' => $this->get_title(),
'description' => $this->get_description(),
'area' => $this->get_area(),
'blockTemplates' => $this->get_formatted_template(),
);
}