Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFormView::get_withdrawal_type_options │ private │ WC 1.0

Get the available withdrawal type options.

Method of the class: OrderWithdrawalFormView{}

No Hooks.

Returns

array<string,string>.

Usage

// private - for code of main (parent) class only
$result = $this->get_withdrawal_type_options(): array;

OrderWithdrawalFormView::get_withdrawal_type_options() code WC 11.1.2

private function get_withdrawal_type_options(): array {
	return array(
		OrderWithdrawalFormProcessor::WITHDRAWAL_TYPE_FULL     => __( 'The full order', 'woocommerce' ),
		OrderWithdrawalFormProcessor::WITHDRAWAL_TYPE_SPECIFIC => __( 'Specific items only', 'woocommerce' ),
	);
}