File: /var/www/html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ComingSoon.php
<?php
namespace Automattic\WooCommerce\Blocks\BlockTypes;
/**
* ComingSoon class.
*/
class ComingSoon extends AbstractBlock {
/**
* Block name.
*
* @var string
*/
protected $block_name = 'coming-soon';
/**
* It is necessary to register and enqueue assets during the render phase because we want to load assets only if the block has the content.
*/
protected function register_block_type_assets() {
parent::register_block_type_assets();
$this->register_chunk_translations( [ $this->block_name ] );
}
}