Automattic\WooCommerce\EmailEditor\Integrations\Core\Renderer\Blocks
Quote::has_authored_border
Check whether quote border was explicitly authored.
Method of the class: Quote{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->has_authored_border( $block_attributes ): bool;
- $block_attributes(array) (required)
- Block attributes.
Quote::has_authored_border() Quote::has authored border code WC 10.9.1
private function has_authored_border( array $block_attributes ): bool {
return ! empty( $block_attributes['style']['border'] ) || ! empty( $block_attributes['borderColor'] );
}