Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/woocomme.../src/Admin/BlockTem...
File: ContainerInterface.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Automattic\WooCommerce\Admin\BlockTemplates;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* Interface for block containers.
[5] Fix | Delete
*/
[6] Fix | Delete
interface ContainerInterface {
[7] Fix | Delete
/**
[8] Fix | Delete
* Get the root template that the block belongs to.
[9] Fix | Delete
*/
[10] Fix | Delete
public function &get_root_template(): BlockTemplateInterface;
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Get the block configuration as a formatted template.
[14] Fix | Delete
*/
[15] Fix | Delete
public function get_formatted_template(): array;
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* Get a block by ID.
[19] Fix | Delete
*
[20] Fix | Delete
* @param string $block_id The block ID.
[21] Fix | Delete
*/
[22] Fix | Delete
public function get_block( string $block_id ): ?BlockInterface;
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* Removes a block from the container.
[26] Fix | Delete
*
[27] Fix | Delete
* @param string $block_id The block ID.
[28] Fix | Delete
*
[29] Fix | Delete
* @throws \UnexpectedValueException If the block container is not an ancestor of the block.
[30] Fix | Delete
*/
[31] Fix | Delete
public function remove_block( string $block_id );
[32] Fix | Delete
[33] Fix | Delete
/**
[34] Fix | Delete
* Removes all blocks from the container.
[35] Fix | Delete
*/
[36] Fix | Delete
public function remove_blocks();
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function