Automattic\WooCommerce\Internal\Admin\Logging\FileV2

FileListTable::get_sortable_columns()protectedWC 1.0

Gets a list of sortable columns.

Method of the class: FileListTable{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_sortable_columns(): array;

FileListTable::get_sortable_columns() code WC 9.3.3

protected function get_sortable_columns(): array {
	$sortable = array(
		'source'   => array( 'source' ),
		'created'  => array( 'created' ),
		'modified' => array( 'modified', true ),
		'size'     => array( 'size' ),
	);

	return $sortable;
}