You are here

public function InvoiceType::getLogoUrl in Commerce Invoice 8.2

Gets the logo URL.

Return value

string|null The logo URL or NULL if it does not exist.

Overrides InvoiceTypeInterface::getLogoUrl

File

src/Entity/InvoiceType.php, line 165

Class

InvoiceType
Defines the invoice type entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function getLogoUrl() {
  if ($image = $this
    ->getLogoFile()) {
    return file_create_url($image
      ->getFileUri());
  }
  return NULL;
}