You are here

function template_preprocess_freelink in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 freelinking.theme.inc \template_preprocess_freelink()

Default implementation for template_preprocess_freelink().

Parameters

array &$variables: The render element properties containing: -

File

./freelinking.theme.inc, line 17
Freelinking template preprocess functions.

Code

function template_preprocess_freelink(array &$variables) {
  if (!isset($variables['attributes'])) {
    $variables['attributes'] = [];
  }
  $variables['attributes'] = new Attribute($variables['attributes']);
}