You are here

public function DomPdfGenerator::pageSizes in PDF Generator 8

Same name and namespace in other branches
  1. 2.0.x src/DomPdfGenerator.php \Drupal\pdf_generator\DomPdfGenerator::pageSizes()

Return a list of page sizes.

File

src/DomPdfGenerator.php, line 166

Class

DomPdfGenerator
Defines helpers methods to help in managing config which used in SCity.

Namespace

Drupal\pdf_generator

Code

public function pageSizes() {
  $sizes = array_keys(CPDF::$PAPER_SIZES);
  return array_combine($sizes, array_map('ucfirst', $sizes));
}