You are here

protected static function ViewsPdfBase::getFontNameByFileName in Views PDF 8

This method returns the name of a given font.

1 call to ViewsPdfBase::getFontNameByFileName()
ViewsPdfBase::getAvailableFonts in src/ViewsPdfBase.php
This method returns a list of available fonts.

File

src/ViewsPdfBase.php, line 1191
Contains \Drupal\views_pdf\ViewsPdfTemplate.

Class

ViewsPdfBase
The main class to generate the PDF.

Namespace

Drupal\views_pdf

Code

protected static function getFontNameByFileName($path) {
  include $path;
  if (isset($name)) {
    return $name;
  }
  else {
    return NULL;
  }
}