Automattic\WooCommerce\Internal\Admin\Logging\FileV2

FileExporter::get_filename()privateWC 1.0

Get the name of the file that will be sent to the browser.

Method of the class: FileExporter{}

No Hooks.

Return

String.

Usage

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

FileExporter::get_filename() code WC 9.3.3

private function get_filename(): string {
	if ( $this->alternate_filename ) {
		return $this->alternate_filename;
	}

	return basename( $this->path );
}