You are here

function printable_link_alter in Printer and PDF versions for Drupal 8+ 2.x

Same name and namespace in other branches
  1. 8 printable.module \printable_link_alter()

Make Link URLs absolute if we're generating a PDF.

Parameters

array $link: The link to be altered.

File

./printable.module, line 300
Provides printer friendly content entities.

Code

function printable_link_alter(array &$link) {
  if (printable_preparing_pdf()) {
    $link['options']['absolute'] = TRUE;
  }
}