Automattic\WooCommerce\Internal\Admin\Logging\FileV2

FileListTable::get_sources_listprotectedWC 1.0

Get the existing log sources for the filter dropdown.

Method of the class: FileListTable{}

No Hooks.

Returns

Array.

Usage

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

FileListTable::get_sources_list() code WC 9.9.4

protected function get_sources_list(): array {
	$sources = $this->file_controller->get_file_sources();
	if ( is_wp_error( $sources ) ) {
		return array();
	}

	sort( $sources );

	return $sources;
}