Automattic\WooCommerce\Internal\Admin\Logging\FileV2
FileListTable::get_sources_list
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() FileListTable::get sources list code WC 10.8.1
protected function get_sources_list(): array {
$sources = $this->file_controller->get_file_sources();
if ( is_wp_error( $sources ) ) {
return array();
}
sort( $sources );
return $sources;
}