Log in
Model

GetLogoFile

Magento\Sales\Model\Order\Invoice\GetLogoFile

What it does

This class retrieves the custom logo file URL configured for invoice HTML printing in Magento 2.

Developers would use this class when they need to display a custom logo on printed or PDF invoices, pulling the logo path from the store configuration and returning the complete media URL.

It's primarily used in invoice rendering templates and PDF generation workflows.

Public Methods

  • execute()