You are here

function printable_link_alter in Printer and PDF versions for Drupal 8+ 8

Same name and namespace in other branches
  1. 2.x 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 303
Provides printer friendly content entities.

Code

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