Merged in release/release-1.09 (pull request #10)
Release/release 1.09 * Install missing plugins * rs set to 1 * rebase pantheon for aws * rebase pantheon for aws * prod config change * prod config change * fix campaing issue * revert Approved-by: Jay Sharma
This commit is contained in:
committed by
Jay Sharma
parent
779393381f
commit
22f10a9edd
@@ -31,11 +31,6 @@ interface BlockInterface {
|
||||
*/
|
||||
public const HIDE_CONDITIONS_KEY = 'hideConditions';
|
||||
|
||||
/**
|
||||
* Key for the block disable conditions in the block configuration.
|
||||
*/
|
||||
public const DISABLE_CONDITIONS_KEY = 'disableConditions';
|
||||
|
||||
/**
|
||||
* Get the block name.
|
||||
*/
|
||||
@@ -115,29 +110,6 @@ interface BlockInterface {
|
||||
*/
|
||||
public function get_hide_conditions(): array;
|
||||
|
||||
/**
|
||||
* Add a disable condition to the block.
|
||||
*
|
||||
* The disable condition is a JavaScript-like expression that will be evaluated on the client to determine if the block should be disabled.
|
||||
* See [@woocommerce/expression-evaluation](https://github.com/woocommerce/woocommerce/blob/trunk/packages/js/expression-evaluation/README.md) for more details.
|
||||
*
|
||||
* @param string $expression An expression, which if true, will disable the block.
|
||||
* @return string The key of the disable condition, which can be used to remove the disable condition.
|
||||
*/
|
||||
public function add_disable_condition( string $expression ): string;
|
||||
|
||||
/**
|
||||
* Remove a disable condition from the block.
|
||||
*
|
||||
* @param string $key The key of the disable condition to remove.
|
||||
*/
|
||||
public function remove_disable_condition( string $key );
|
||||
|
||||
/**
|
||||
* Get the disable conditions of the block.
|
||||
*/
|
||||
public function get_disable_conditions(): array;
|
||||
|
||||
/**
|
||||
* Get the block configuration as a formatted template.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user