You are here

public function PdfFieldHandler::option_definition in Commerce Invoice 7.2

File

modules/pdf/src/Views/PdfFieldHandler.php, line 15
Views field handler to display a download link for an invoice PDF.

Class

PdfFieldHandler
@file Views field handler to display a download link for an invoice PDF.

Namespace

Drupal\commerce_invoice_pdf\Views

Code

public function option_definition() {
  $options = parent::option_definition();
  $options['op'] = array(
    'default' => 'view',
  );
  $options['text'] = array(
    'default' => 'View PDF',
    'translatable' => TRUE,
  );
  return $options;
}