Automattic\WooCommerce\EmailEditor\Integrations\Core\Renderer\Blocks
Quote::has_authored_border
Check whether quote border was explicitly authored.
Метод класса: Quote{}
Хуков нет.
Возвращает
bool.
Использование
// private - только в коде основоного (родительского) класса $result = $this->has_authored_border( $block_attributes ): bool;
- $block_attributes(массив) (обязательный)
- Block attributes.
Код Quote::has_authored_border() Quote::has authored border WC 11.2.2
private function has_authored_border( array $block_attributes ): bool {
return ! empty( $block_attributes['style']['border'] ) || ! empty( $block_attributes['borderColor'] );
}