Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

Table::column_enabled()publicWC 1.0

Rule-is-enabled column.

Method of the class: Table{}

No Hooks.

Return

String.

Usage

$Table = new Table();
$Table->column_enabled( $item ): string;
$item(StoredUrl) (required)
The approved directory information for the current row.

Table::column_enabled() code WC 8.7.0

public function column_enabled( StoredUrl $item ): string {
	return $item->is_enabled()
		? '<mark class="yes" title="' . esc_html__( 'Enabled', 'woocommerce' ) . '"><span class="dashicons dashicons-yes"></span></mark>'
		: '<mark class="no" title="' . esc_html__( 'Disabled', 'woocommerce' ) . '">&ndash;</mark>';
}